Step.cs 900 B

12345678910111213141516171819202122232425262728
  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. private float step;
  24. }
  25. }