//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Brutal.GltfApi { using System.Linq; using System.Runtime.Serialization; using System.Text.Json.Serialization; /// /// Object part of the GLTF file schema /// A keyframe animation. /// public partial class Animation { /// /// Backing field for Channels. /// private AnimationChannel[] m_channels; /// /// Backing field for Samplers. /// private AnimationSampler[] m_samplers; /// /// Backing field for Name. /// private string m_name; /// /// Backing field for Extensions. /// private System.Collections.Generic.Dictionary m_extensions; /// /// Backing field for Extras. /// private Extras m_extras; /// /// An array of animation channels. An animation channel combines an animation sampler with a target property being animated. Different channels of the same animation **MUST NOT** have the same targets. /// [System.Text.Json.Serialization.JsonRequiredAttribute()] [System.Text.Json.Serialization.JsonPropertyNameAttribute("channels")] public AnimationChannel[] Channels { get { return this.m_channels; } set { if ((value == null)) { this.m_channels = value; return; } if ((value.Length < 1u)) { throw new System.ArgumentException("Array not long enough"); } this.m_channels = value; } } /// /// An array of animation samplers. An animation sampler combines timestamps with a sequence of output values and defines an interpolation algorithm. /// [System.Text.Json.Serialization.JsonRequiredAttribute()] [System.Text.Json.Serialization.JsonPropertyNameAttribute("samplers")] public AnimationSampler[] Samplers { get { return this.m_samplers; } set { if ((value == null)) { this.m_samplers = value; return; } if ((value.Length < 1u)) { throw new System.ArgumentException("Array not long enough"); } this.m_samplers = value; } } /// /// The user-defined name of this object. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] public string Name { get { return this.m_name; } set { this.m_name = value; } } /// /// JSON object with extension-specific objects. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")] public System.Collections.Generic.Dictionary Extensions { get { return this.m_extensions; } set { this.m_extensions = value; } } /// /// Application-specific data. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")] public Extras Extras { get { return this.m_extras; } set { this.m_extras = value; } } /// /// This method is used to determine if the Channels property should be serialized. /// public bool ShouldSerializeChannels() { return ((m_channels == null) == false); } /// /// This method is used to determine if the Samplers property should be serialized. /// public bool ShouldSerializeSamplers() { return ((m_samplers == null) == false); } /// /// This method is used to determine if the Name property should be serialized. /// public bool ShouldSerializeName() { return ((m_name == null) == false); } /// /// This method is used to determine if the Extensions property should be serialized. /// public bool ShouldSerializeExtensions() { return ((m_extensions == null) == false); } /// /// This method is used to determine if the Extras property should be serialized. /// public bool ShouldSerializeExtras() { return ((m_extras == null) == false); } } }