mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
148 lines
4.5 KiB
C#
148 lines
4.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 buffer points to binary geometry, animation, or skins.
|
|
/// </summary>
|
|
public partial class Buffer {
|
|
|
|
/// <summary>
|
|
/// Backing field for Uri.
|
|
/// </summary>
|
|
private string m_uri;
|
|
|
|
/// <summary>
|
|
/// Backing field for ByteLength.
|
|
/// </summary>
|
|
private int m_byteLength;
|
|
|
|
/// <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>
|
|
/// The URI (or IRI) of the buffer.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("uri")]
|
|
public string Uri {
|
|
get {
|
|
return this.m_uri;
|
|
}
|
|
set {
|
|
this.m_uri = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The length of the buffer in bytes.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteLength")]
|
|
public int ByteLength {
|
|
get {
|
|
return this.m_byteLength;
|
|
}
|
|
set {
|
|
if ((value < 1)) {
|
|
throw new System.ArgumentOutOfRangeException("ByteLength", value, "Expected value to be greater than or equal to 1");
|
|
}
|
|
this.m_byteLength = 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 Uri property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeUri() {
|
|
return ((m_uri == 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);
|
|
}
|
|
}
|
|
}
|