mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
167
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Mesh.gen.cs
Normal file
167
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Mesh.gen.cs
Normal file
|
|
@ -0,0 +1,167 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 set of primitives to be rendered. Its global transform is defined by a node that references it.
|
||||
/// </summary>
|
||||
public partial class Mesh {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Primitives.
|
||||
/// </summary>
|
||||
private MeshPrimitive[] m_primitives;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Weights.
|
||||
/// </summary>
|
||||
private float[] m_weights;
|
||||
|
||||
/// <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 primitives, each defining geometry to be rendered.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("primitives")]
|
||||
public MeshPrimitive[] Primitives {
|
||||
get {
|
||||
return this.m_primitives;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_primitives = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_primitives = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Array of weights to be applied to the morph targets. The number of array elements **MUST** match the number of morph targets.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("weights")]
|
||||
public float[] Weights {
|
||||
get {
|
||||
return this.m_weights;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_weights = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_weights = 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 Primitives property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializePrimitives() {
|
||||
return ((m_primitives == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Weights property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeWeights() {
|
||||
return ((m_weights == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue