mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
168 lines
5.5 KiB
C#
168 lines
5.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Brutal.GltfApi {
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
/// <summary>
|
|
/// Object part of the GLTF file schema
|
|
/// A keyframe animation.
|
|
/// </summary>
|
|
public partial class Animation {
|
|
|
|
/// <summary>
|
|
/// Backing field for Channels.
|
|
/// </summary>
|
|
private AnimationChannel[] m_channels;
|
|
|
|
/// <summary>
|
|
/// Backing field for Samplers.
|
|
/// </summary>
|
|
private AnimationSampler[] m_samplers;
|
|
|
|
/// <summary>
|
|
/// Backing field for Name.
|
|
/// </summary>
|
|
private string m_name;
|
|
|
|
/// <summary>
|
|
/// Backing field for Extensions.
|
|
/// </summary>
|
|
private System.Collections.Generic.Dictionary<string, object> m_extensions;
|
|
|
|
/// <summary>
|
|
/// Backing field for Extras.
|
|
/// </summary>
|
|
private Extras m_extras;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of animation samplers. An animation sampler combines timestamps with a sequence of output values and defines an interpolation algorithm.
|
|
/// </summary>
|
|
[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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The user-defined name of this object.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("name")]
|
|
public string Name {
|
|
get {
|
|
return this.m_name;
|
|
}
|
|
set {
|
|
this.m_name = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// JSON object with extension-specific objects.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")]
|
|
public System.Collections.Generic.Dictionary<string, object> Extensions {
|
|
get {
|
|
return this.m_extensions;
|
|
}
|
|
set {
|
|
this.m_extensions = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Application-specific data.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")]
|
|
public Extras Extras {
|
|
get {
|
|
return this.m_extras;
|
|
}
|
|
set {
|
|
this.m_extras = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Channels property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeChannels() {
|
|
return ((m_channels == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Samplers property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeSamplers() {
|
|
return ((m_samplers == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Name property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeName() {
|
|
return ((m_name == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Extensions property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeExtensions() {
|
|
return ((m_extensions == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Extras property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeExtras() {
|
|
return ((m_extras == null)
|
|
== false);
|
|
}
|
|
}
|
|
}
|