using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace BansheeEngine { /** @addtogroup Animation * @{ */ /// Event that is triggered when animation reaches a certain point. [StructLayout(LayoutKind.Sequential), SerializeObject] public partial struct AnimationEvent { /// Initializes the struct with default values. public static AnimationEvent Default() { AnimationEvent value = new AnimationEvent(); value.name = ""; value.time = 0f; return value; } /// Constructs a new animation event. /// Name used to identify the event when triggered. /// Time at which to trigger the event, in seconds. public AnimationEvent(string name, float time) { this.name = name; this.time = time; } /// Name used to identify the event when triggered. public string name; /// Time at which to trigger the event, in seconds. public float time; } /** @} */ }