//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace Brutal.GltfApi {
using System.Linq;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
///
/// Object part of the GLTF file schema
/// Sourced from the 'KHR_draco_mesh_compression' extension
///
public partial class DracoMeshCompressionGltfMeshPrimitiveExtension {
///
/// Backing field for BufferView.
///
private int m_bufferView;
///
/// Backing field for Attributes.
///
private System.Collections.Generic.Dictionary m_attributes;
///
/// Backing field for Extensions.
///
private System.Collections.Generic.Dictionary m_extensions;
///
/// Backing field for Extras.
///
private Extras m_extras;
///
/// The index of the bufferView.
///
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("bufferView")]
public int BufferView {
get {
return this.m_bufferView;
}
set {
if ((value < 0)) {
throw new System.ArgumentOutOfRangeException("BufferView", value, "Expected value to be greater than or equal to 0");
}
this.m_bufferView = value;
}
}
///
/// A dictionary object, where each key corresponds to an attribute and its unique attribute id stored in the compressed geometry.
///
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")]
public System.Collections.Generic.Dictionary Attributes {
get {
return this.m_attributes;
}
set {
this.m_attributes = value;
}
}
///
/// JSON object with extension-specific objects.
///
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")]
public System.Collections.Generic.Dictionary Extensions {
get {
return this.m_extensions;
}
set {
this.m_extensions = value;
}
}
///
/// Application-specific data.
///
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")]
public Extras Extras {
get {
return this.m_extras;
}
set {
this.m_extras = value;
}
}
///
/// This method is used to determine if the Attributes property should be serialized.
///
public bool ShouldSerializeAttributes() {
return ((m_attributes == null)
== false);
}
///
/// This method is used to determine if the Extensions property should be serialized.
///
public bool ShouldSerializeExtensions() {
return ((m_extensions == null)
== false);
}
///
/// This method is used to determine if the Extras property should be serialized.
///
public bool ShouldSerializeExtras() {
return ((m_extras == null)
== false);
}
}
}