PARTICLE_CIRCLE_SHAPE_DESC.generated.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 ParticleEmitterCircleShape.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleCircleShapeOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleCircleShapeOptions Default()
  15. {
  16. ParticleCircleShapeOptions value = new ParticleCircleShapeOptions();
  17. value.radius = 1f;
  18. value.thickness = 0f;
  19. value.arc = new Degree();
  20. value.mode = new ParticleEmissionMode();
  21. return value;
  22. }
  23. /// <summary>Radius of the circle.</summary>
  24. public float radius;
  25. /// <summary>
  26. /// Proportion of the surface that can emit particles. Thickness of 0 results in particles being emitted only from the
  27. /// edge of the circle, while thickness of 1 results in particles being emitted from the entire surface. In-between
  28. /// values will use a part of the surface.
  29. /// </summary>
  30. public float thickness;
  31. /// <summary>Angular portion of the cone from which to emit particles from, in degrees.</summary>
  32. public Degree arc;
  33. /// <summary>Determines how will particle positions on the shape be generated.</summary>
  34. public ParticleEmissionMode mode;
  35. }
  36. /** @} */
  37. }