| 123456789101112131415161718192021222324252627282930 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- namespace BansheeEngine
- {
- /** @addtogroup Serialization
- * @{
- */
- /// <summary>
- /// Makes an integer or a floating point field vary by multiples of the specified value.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field)]
- public sealed class Step : Attribute
- {
- /// <summary>
- /// Creates a new Step attribute.
- /// </summary>
- /// <param name="step">Minimum change of the field. Every change will be rounded to a multiple of this value.</param>
- public Step(float step)
- {
- this.step = step;
- }
- #pragma warning disable 0414
- private float step;
- #pragma warning restore 0414
- }
- }
|