Anvil
|
A key/value pair/variable stored on an Object. More...
Public Member Functions | |
abstract void | Delete () |
Deletes the value of this variable. More... | |
override bool | Equals (object? obj) |
bool | Equals (ObjectVariable< T >? other) |
override int | GetHashCode () |
Static Public Member Functions | |
static implicit | operator T? (ObjectVariable< T > value) |
Implicit conversion of the value of this variable. More... | |
static bool | operator!= (ObjectVariable< T > left, ObjectVariable< T > right) |
static bool | operator== (ObjectVariable< T > left, ObjectVariable< T > right) |
Properties | |
bool | HasNothing [get] |
Gets a value indicating whether this variable has no value. More... | |
abstract bool | HasValue [get] |
Gets a value indicating whether this variable has a value. More... | |
string | Name = null! [get] |
NwObject | Object = null! [get] |
abstract ? T | Value [get, set] |
Gets or sets the current value of this variable. Returns the default value of T if unassigned (null or 0). More... | |
A key/value pair/variable stored on an Object.
|
pure virtual |
Deletes the value of this variable.
Implemented in Anvil.API.ObjectStorageVariableStruct< T >, Anvil.API.ObjectStorageVariableEnum< T >, Anvil.API.LocalVariableStruct< T >, Anvil.API.LocalVariableObject< T >, and Anvil.API.LocalVariableEnum< T >.
|
inlinestatic |
Implicit conversion of the value of this variable.
|
get |
Gets a value indicating whether this variable has no value.
|
get |
Gets a value indicating whether this variable has a value.
|
getset |
Gets or sets the current value of this variable. Returns the default value of T if unassigned (null or 0).