mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
625 lines
19 KiB
C#
625 lines
19 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
|
|
/// The root object for a glTF asset.
|
|
/// </summary>
|
|
public partial class Gltf {
|
|
|
|
/// <summary>
|
|
/// Backing field for ExtensionsUsed.
|
|
/// </summary>
|
|
private string[] m_extensionsUsed;
|
|
|
|
/// <summary>
|
|
/// Backing field for ExtensionsRequired.
|
|
/// </summary>
|
|
private string[] m_extensionsRequired;
|
|
|
|
/// <summary>
|
|
/// Backing field for Accessors.
|
|
/// </summary>
|
|
private Accessor[] m_accessors;
|
|
|
|
/// <summary>
|
|
/// Backing field for Animations.
|
|
/// </summary>
|
|
private Animation[] m_animations;
|
|
|
|
/// <summary>
|
|
/// Backing field for Asset.
|
|
/// </summary>
|
|
private Asset m_asset;
|
|
|
|
/// <summary>
|
|
/// Backing field for Buffers.
|
|
/// </summary>
|
|
private Buffer[] m_buffers;
|
|
|
|
/// <summary>
|
|
/// Backing field for BufferViews.
|
|
/// </summary>
|
|
private BufferView[] m_bufferViews;
|
|
|
|
/// <summary>
|
|
/// Backing field for Cameras.
|
|
/// </summary>
|
|
private Camera[] m_cameras;
|
|
|
|
/// <summary>
|
|
/// Backing field for Images.
|
|
/// </summary>
|
|
private Image[] m_images;
|
|
|
|
/// <summary>
|
|
/// Backing field for Materials.
|
|
/// </summary>
|
|
private Material[] m_materials;
|
|
|
|
/// <summary>
|
|
/// Backing field for Meshes.
|
|
/// </summary>
|
|
private Mesh[] m_meshes;
|
|
|
|
/// <summary>
|
|
/// Backing field for Nodes.
|
|
/// </summary>
|
|
private Node[] m_nodes;
|
|
|
|
/// <summary>
|
|
/// Backing field for Samplers.
|
|
/// </summary>
|
|
private Sampler[] m_samplers;
|
|
|
|
/// <summary>
|
|
/// Backing field for Scene.
|
|
/// </summary>
|
|
private System.Nullable<int> m_scene;
|
|
|
|
/// <summary>
|
|
/// Backing field for Scenes.
|
|
/// </summary>
|
|
private Scene[] m_scenes;
|
|
|
|
/// <summary>
|
|
/// Backing field for Skins.
|
|
/// </summary>
|
|
private Skin[] m_skins;
|
|
|
|
/// <summary>
|
|
/// Backing field for Textures.
|
|
/// </summary>
|
|
private Texture[] m_textures;
|
|
|
|
/// <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>
|
|
/// Names of glTF extensions used in this asset.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensionsUsed")]
|
|
public string[] ExtensionsUsed {
|
|
get {
|
|
return this.m_extensionsUsed;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_extensionsUsed = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_extensionsUsed = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Names of glTF extensions required to properly load this asset.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensionsRequired")]
|
|
public string[] ExtensionsRequired {
|
|
get {
|
|
return this.m_extensionsRequired;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_extensionsRequired = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_extensionsRequired = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of accessors.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("accessors")]
|
|
public Accessor[] Accessors {
|
|
get {
|
|
return this.m_accessors;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_accessors = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_accessors = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of keyframe animations.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("animations")]
|
|
public Animation[] Animations {
|
|
get {
|
|
return this.m_animations;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_animations = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_animations = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Metadata about the glTF asset.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("asset")]
|
|
public Asset Asset {
|
|
get {
|
|
return this.m_asset;
|
|
}
|
|
set {
|
|
this.m_asset = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of buffers.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("buffers")]
|
|
public Buffer[] Buffers {
|
|
get {
|
|
return this.m_buffers;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_buffers = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_buffers = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of bufferViews.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("bufferViews")]
|
|
public BufferView[] BufferViews {
|
|
get {
|
|
return this.m_bufferViews;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_bufferViews = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_bufferViews = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of cameras.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("cameras")]
|
|
public Camera[] Cameras {
|
|
get {
|
|
return this.m_cameras;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_cameras = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_cameras = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of images.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("images")]
|
|
public Image[] Images {
|
|
get {
|
|
return this.m_images;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_images = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_images = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of materials.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("materials")]
|
|
public Material[] Materials {
|
|
get {
|
|
return this.m_materials;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_materials = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_materials = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of meshes.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("meshes")]
|
|
public Mesh[] Meshes {
|
|
get {
|
|
return this.m_meshes;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_meshes = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_meshes = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of nodes.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")]
|
|
public Node[] Nodes {
|
|
get {
|
|
return this.m_nodes;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_nodes = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_nodes = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of samplers.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("samplers")]
|
|
public Sampler[] 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 index of the default scene.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("scene")]
|
|
public System.Nullable<int> Scene {
|
|
get {
|
|
return this.m_scene;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("Scene", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_scene = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of scenes.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("scenes")]
|
|
public Scene[] Scenes {
|
|
get {
|
|
return this.m_scenes;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_scenes = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_scenes = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of skins.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("skins")]
|
|
public Skin[] Skins {
|
|
get {
|
|
return this.m_skins;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_skins = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_skins = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// An array of textures.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("textures")]
|
|
public Texture[] Textures {
|
|
get {
|
|
return this.m_textures;
|
|
}
|
|
set {
|
|
if ((value == null)) {
|
|
this.m_textures = value;
|
|
return;
|
|
}
|
|
if ((value.Length < 1u)) {
|
|
throw new System.ArgumentException("Array not long enough");
|
|
}
|
|
this.m_textures = 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 ExtensionsUsed property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeExtensionsUsed() {
|
|
return ((m_extensionsUsed == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the ExtensionsRequired property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeExtensionsRequired() {
|
|
return ((m_extensionsRequired == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Accessors property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeAccessors() {
|
|
return ((m_accessors == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Animations property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeAnimations() {
|
|
return ((m_animations == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Asset property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeAsset() {
|
|
return ((m_asset == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Buffers property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeBuffers() {
|
|
return ((m_buffers == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the BufferViews property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeBufferViews() {
|
|
return ((m_bufferViews == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Cameras property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeCameras() {
|
|
return ((m_cameras == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Images property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeImages() {
|
|
return ((m_images == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Materials property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeMaterials() {
|
|
return ((m_materials == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Meshes property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeMeshes() {
|
|
return ((m_meshes == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Nodes property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeNodes() {
|
|
return ((m_nodes == 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 Scene property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeScene() {
|
|
return ((m_scene == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Scenes property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeScenes() {
|
|
return ((m_scenes == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Skins property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeSkins() {
|
|
return ((m_skins == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Textures property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeTextures() {
|
|
return ((m_textures == 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);
|
|
}
|
|
}
|
|
}
|