mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
138 lines
4.8 KiB
C#
138 lines
4.8 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
|
|
/// Sourced from the 'KHR_lights_punctual' extension
|
|
/// </summary>
|
|
public partial class LightsPunctualLightSpotProperties {
|
|
|
|
/// <summary>
|
|
/// Backing field for InnerConeAngle.
|
|
/// </summary>
|
|
private float m_innerConeAngle = 0F;
|
|
|
|
/// <summary>
|
|
/// Backing field for OuterConeAngle.
|
|
/// </summary>
|
|
private float m_outerConeAngle = 0.7853982F;
|
|
|
|
/// <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>
|
|
/// Angle in radians from centre of spotlight where falloff begins.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("innerConeAngle")]
|
|
public float InnerConeAngle {
|
|
get {
|
|
return this.m_innerConeAngle;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("InnerConeAngle", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
if ((value >= 1.5707963267948966D)) {
|
|
throw new System.ArgumentOutOfRangeException("InnerConeAngle", value, "Expected value to be less than 1.5707963267948966");
|
|
}
|
|
this.m_innerConeAngle = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Angle in radians from centre of spotlight where falloff ends.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("outerConeAngle")]
|
|
public float OuterConeAngle {
|
|
get {
|
|
return this.m_outerConeAngle;
|
|
}
|
|
set {
|
|
if ((value <= 0)) {
|
|
throw new System.ArgumentOutOfRangeException("OuterConeAngle", value, "Expected value to be greater than 0");
|
|
}
|
|
if ((value > 1.5707963267948966D)) {
|
|
throw new System.ArgumentOutOfRangeException("OuterConeAngle", value, "Expected value to be less than or equal to 1.5707963267948966");
|
|
}
|
|
this.m_outerConeAngle = 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 InnerConeAngle property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeInnerConeAngle() {
|
|
return ((m_innerConeAngle == 0F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the OuterConeAngle property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeOuterConeAngle() {
|
|
return ((m_outerConeAngle == 0.7853982F)
|
|
== 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);
|
|
}
|
|
}
|
|
}
|