ParticleValueKind.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. namespace MonoGame.Extended.Particles.Data;
  5. /// <summary>
  6. /// Defines how particle property values are determined during particle creation and simulation.
  7. /// </summary>
  8. /// <remarks>
  9. /// This enum is used throughout the particle system to specify whether values should be constant or randomly generated
  10. /// within a specified range.
  11. /// </remarks>
  12. public enum ParticleValueKind
  13. {
  14. /// <summary>
  15. /// Indicates that a particle property should maintain a constant value.
  16. /// </summary>
  17. /// <remarks>
  18. /// WHen a particle property uses this kind, all particles will have the same value for that property, which remains
  19. /// unchanged unless explicitly modified.
  20. /// </remarks>
  21. Constant,
  22. /// <summary>
  23. /// Indicates that a particle property should be randomly generated within a specified range.
  24. /// </summary>
  25. /// <remarks>
  26. /// When a particle property uses this kind, each particle will receive a unique random value within the defined
  27. /// minimum and maximum bounds when the particle is created.
  28. /// </remarks>
  29. Random
  30. }