Step.cs 991 B

1234567891011121314151617181920212223242526272829303132
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Serialization
  7. * @{
  8. */
  9. /// <summary>
  10. /// Makes an integer or a floating point field vary by multiples of the specified value.
  11. /// </summary>
  12. [AttributeUsage(AttributeTargets.Field)]
  13. public sealed class Step : Attribute
  14. {
  15. /// <summary>
  16. /// Creates a new Step attribute.
  17. /// </summary>
  18. /// <param name="step">Minimum change of the field. Every change will be rounded to a multiple of this value.</param>
  19. public Step(float step)
  20. {
  21. this.step = step;
  22. }
  23. #pragma warning disable 0414
  24. private float step;
  25. #pragma warning restore 0414
  26. }
  27. /** @} */
  28. }