Anvil
Anvil.API.GffResourceFieldValue Class Reference

A regular GffResourceField containing a primitive value. More...

+ Inheritance diagram for Anvil.API.GffResourceFieldValue:
+ Collaboration diagram for Anvil.API.GffResourceFieldValue:

Public Member Functions

bool TryReadByte (out byte value)
 
bool TryReadCExoLocString (out string value, int id=0, Gender gender=Gender.Male)
 
bool TryReadCExoString (out string value)
 
bool TryReadChar (out byte value)
 
bool TryReadCResRef (out string value)
 
bool TryReadDouble (out double value)
 
bool TryReadDWord (out uint value)
 
bool TryReadDWord64 (out ulong value)
 
bool TryReadFloat (out float value)
 
bool TryReadInt (out int value)
 
bool TryReadInt64 (out long value)
 
bool TryReadShort (out short value)
 
bool TryReadWord (out ushort value)
 
- Public Member Functions inherited from Anvil.API.GffResourceField
virtual bool ContainsKey (string key)
 If this field is a GffResourceFieldStruct, determines if the specified key exists in the structure. More...
 
sealed override? string ToString ()
 
virtual bool TryGetValue (string key, [NotNullWhen(true)] out GffResourceField? value)
 If this field is a GffResourceFieldStruct, gets the value associated with the specified key. More...
 
object? Value ()
 Gets the value of this field. More...
 
T? Value< T > ()
 Gets the value of this field. More...
 
object? ValueOrDefault ()
 Gets the value of this field. More...
 
T? ValueOrDefault< T > ()
 Gets the value of this field. More...
 

Protected Member Functions

override bool GetValueInternal ([NotNullWhen(true)] out object? value, Type? requestedType=null)
 
- Protected Member Functions inherited from Anvil.API.GffResourceField
 GffResourceField (CResGFF resGff)
 

Properties

override GffResourceFieldType FieldType [get]
 
- Properties inherited from Anvil.API.GffResourceField
virtual int Count [get]
 Gets the number of child fields. More...
 
virtual IEnumerable< KeyValuePair< string, GffResourceField > > EntrySet = Enumerable.Empty<KeyValuePair<string, GffResourceField>>() [get]
 If this field is a struct, gets an enumerable of the key/values pairs.
Otherwise, returns an empty enumerable. More...
 
abstract GffResourceFieldType FieldType [get]
 Gets the GFF field type. More...
 
bool HasChildren [get]
 Gets whether this field contains child values. More...
 
virtual IEnumerable< string > Keys = Enumerable.Empty<string>() [get]
 If this field is a struct, gets an enumerable of the struct's keys.
Otherwise, returns an empty enumerable. More...
 
virtual GffResourceField this[int index] [get]
 Gets the child GffResourceField at the specified index. More...
 
virtual GffResourceField this[string key] [get]
 Gets the child GffResourceField with the specified key. More...
 
virtual IEnumerable< GffResourceFieldValues = Enumerable.Empty<GffResourceField>() [get]
 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. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Anvil.API.GffResourceField
static operator byte (GffResourceField field)
 
static operator double (GffResourceField field)
 
static operator float (GffResourceField field)
 
static operator int (GffResourceField field)
 
static operator long (GffResourceField field)
 
static operator short (GffResourceField field)
 
static operator string? (GffResourceField field)
 
static operator uint (GffResourceField field)
 
static operator ulong (GffResourceField field)
 
static operator ushort (GffResourceField field)
 
- Protected Attributes inherited from Anvil.API.GffResourceField
readonly CResGFF ResGff
 

Detailed Description

A regular GffResourceField containing a primitive value.


The documentation for this class was generated from the following file: