PARTICLE_CONE_SHAPE_DESC.generated.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Information describing a ParticleEmitterConeShape.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleConeShapeOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleConeShapeOptions Default()
  15. {
  16. ParticleConeShapeOptions value = new ParticleConeShapeOptions();
  17. value.type = ParticleEmitterConeType.Base;
  18. value.radius = 0f;
  19. value.angle = new Degree();
  20. value.length = 1f;
  21. value.thickness = 1f;
  22. value.arc = new Degree();
  23. value.mode = new ParticleEmissionMode();
  24. return value;
  25. }
  26. /// <summary>Determines where on the cone are the particles emitter from.</summary>
  27. public ParticleEmitterConeType type;
  28. /// <summary>Radius of the cone base.</summary>
  29. public float radius;
  30. /// <summary>Angle of the cone.</summary>
  31. public Degree angle;
  32. /// <summary>Length of the cone. Irrelevant if emission type is Base.</summary>
  33. public float length;
  34. /// <summary>
  35. /// Proportion of the volume that can emit particles. Thickness of 0 results in particles being emitted only from the
  36. /// edge of the cone, while thickness of 1 results in particles being emitted from the entire volume. In-between values
  37. /// will use a part of the volume.
  38. /// </summary>
  39. public float thickness;
  40. /// <summary>Angular portion of the cone from which to emit particles from, in degrees.</summary>
  41. public Degree arc;
  42. /// <summary>Determines how will particle positions on the shape be generated.</summary>
  43. public ParticleEmissionMode mode;
  44. }
  45. /** @} */
  46. }