ParticleEmissionMode.generated.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Controls how are particle positions on a shape chosen.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleEmissionMode
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleEmissionMode Default()
  15. {
  16. ParticleEmissionMode value = new ParticleEmissionMode();
  17. value.type = ParticleEmissionModeType.Random;
  18. value.speed = 1f;
  19. value.interval = 0f;
  20. return value;
  21. }
  22. /// <summary>Type that determines general behaviour.</summary>
  23. public ParticleEmissionModeType type;
  24. /// <summary>
  25. /// Speed along which particle generation should move around the shape, relevant for Loop and PingPing emission modes.
  26. /// </summary>
  27. public float speed;
  28. /// <summary>
  29. /// Determines the minimum interval allowed between the generated particles. 0 specifies the particles can be generated
  30. /// anywhere on the shape.
  31. /// </summary>
  32. public float interval;
  33. }
  34. /** @} */
  35. }