A property/field in a GffResource.
More...
|
| GffResourceField (CResGFF resGff) |
|
virtual bool | GetValueInternal (out object? value, Type? requestedType=null) |
|
A property/field in a GffResource.
◆ ContainsKey()
virtual bool Anvil.API.GffResourceField.ContainsKey |
( |
string |
key | ) |
|
|
inlinevirtual |
◆ TryGetValue()
virtual bool Anvil.API.GffResourceField.TryGetValue |
( |
string |
key, |
|
|
[NotNullWhen(true)] out GffResourceField? |
value |
|
) |
| |
|
inlinevirtual |
If this field is a GffResourceFieldStruct, gets the value associated with the specified key.
- Parameters
-
key | The key of the value to get./ |
value | If the method runs successfully (returns true), this output parameter will contain the associated value. |
- Returns
- True if the field is a GffResourceFieldStruct and the key exists. Otherwise, false.
Reimplemented in Anvil.API.GffResourceFieldStruct.
◆ Value()
object? Anvil.API.GffResourceField.Value |
( |
| ) |
|
|
inline |
Gets the value of this field.
- Returns
- The value associated with this GffResourceField.
- Exceptions
-
InvalidOperationException | Thrown if this field is not a standard value type. |
◆ Value< T >()
Gets the value of this field.
- Template Parameters
-
- Returns
- The value associated with this GffResourceField.
- Exceptions
-
InvalidOperationException | Thrown if this field is not a standard value type, or an invalid generic type was specified.. |
◆ ValueOrDefault()
object? Anvil.API.GffResourceField.ValueOrDefault |
( |
| ) |
|
|
inline |
Gets the value of this field.
- Returns
- The value associated with this GffResourceField. Returns null if the value is a list or struct.
◆ ValueOrDefault< T >()
Gets the value of this field.
- Returns
- The value associated with this GffResourceField. Returns null if the value is a list or struct, or does not match the specified type.
◆ Count
virtual int Anvil.API.GffResourceField.Count |
|
get |
Gets the number of child fields.
◆ EntrySet
If this field is a struct, gets an enumerable of the key/values pairs.
Otherwise, returns an empty enumerable.
◆ FieldType
abstract GffResourceFieldType Anvil.API.GffResourceField.FieldType |
|
get |
◆ HasChildren
bool Anvil.API.GffResourceField.HasChildren |
|
get |
Gets whether this field contains child values.
◆ Keys
virtual IEnumerable<string> Anvil.API.GffResourceField.Keys = Enumerable.Empty<string>() |
|
get |
If this field is a struct, gets an enumerable of the struct's keys.
Otherwise, returns an empty enumerable.
◆ this[int index]
◆ this[string key]
◆ Values
If this field is an array, gets an enumerable of the array's values.
If this field is a struct, gets an enumerable of the struct's values.
Otherwise, returns an empty enumerable.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/Resources/Gff/Fields/GffResourceField.cs