mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 05:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
158
Brutal.Gltf/GltfApi/GeneratedSchema/AnimationSampler.gen.cs
Normal file
158
Brutal.Gltf/GltfApi/GeneratedSchema/AnimationSampler.gen.cs
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// An animation sampler combines timestamps with a sequence of output values and defines an interpolation algorithm.
|
||||
/// </summary>
|
||||
public partial class AnimationSampler {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Input.
|
||||
/// </summary>
|
||||
private int m_input;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Interpolation.
|
||||
/// </summary>
|
||||
private InterpolationEnum m_interpolation = InterpolationEnum.Linear;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Output.
|
||||
/// </summary>
|
||||
private int m_output;
|
||||
|
||||
/// <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>
|
||||
/// The index of an accessor containing keyframe timestamps.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("input")]
|
||||
public int Input {
|
||||
get {
|
||||
return this.m_input;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Input", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_input = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Interpolation algorithm.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("interpolation")]
|
||||
public InterpolationEnum Interpolation {
|
||||
get {
|
||||
return this.m_interpolation;
|
||||
}
|
||||
set {
|
||||
this.m_interpolation = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The index of an accessor, containing keyframe output values.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("output")]
|
||||
public int Output {
|
||||
get {
|
||||
return this.m_output;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Output", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_output = 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 Interpolation property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeInterpolation() {
|
||||
return ((m_interpolation == InterpolationEnum.Linear)
|
||||
== 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// Interpolation algorithm.
|
||||
/// </summary>
|
||||
public enum InterpolationEnum {
|
||||
|
||||
Linear,
|
||||
|
||||
Step,
|
||||
|
||||
Cubicspline,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue