Represents an array of boolean values indexed by an enum type. More...
Public Member Functions | |
void | Init () |
Initializes the array by filling it with false values, one for each entry in the enum. | |
Public Attributes | |
bool | this [TEnum key] |
Gets or sets the boolean value associated with a specific enum key. | |
set => values[Convert.ToInt32(key)] = value | |
List< bool > | Raw => values |
Gets the raw internal list of boolean values. | |
float | this [TEnum key] |
List< float > | Raw => values |
int | this [TEnum key] |
List< int > | Raw => values |
string | this [TEnum key] |
List< string > | Raw => values |
Private Member Functions | |
void | Init () |
void | Init () |
void | Init () |
void | Init () |
Private Attributes | |
List< bool > | values = new List<bool>() |
Internal list of boolean values, indexed based on the enum order. | |
List< float > | values = new List<float>() |
List< int > | values = new List<int>() |
List< string > | values = new List<string>() |
List< Vector3 > | values = new List<Vector3>() |
Represents an array of boolean values indexed by an enum type.
Serializable array of Vector3 indexed by enum.
Serializable array of ints indexed by enum.
Serializable array of floats indexed by enum.
TEnum | The enum type used for indexing. Must be a valid enum . |
TEnum | An enum type used for indexing. |
void Backbone::TEnum::Init | ( | ) |
Initializes the array by filling it with false
values, one for each entry in the enum.
Note: This method must be called manually when the object is created at runtime. It is not called in the constructor to avoid overwriting values when deserializing from JSON.
|
private |
|
private |
|
private |
|
private |
List<bool> Backbone::TEnum::Raw => values |
Gets the raw internal list of boolean values.
This is useful for serialization, inspection, or manual manipulation.
List<float> Backbone::TEnum::Raw => values |
List<int> Backbone::TEnum::Raw => values |
List<string> Backbone::TEnum::Raw => values |
Backbone::TEnum::set => values[Convert.ToInt32(key)] = value |
bool Backbone::TEnum::this[TEnum key] |
Gets or sets the boolean value associated with a specific enum key.
key | The enum key to access or assign. |
|
private |
Internal list of boolean values, indexed based on the enum order.
|
private |
|
private |
|
private |
|
private |