Table of Contents

Class GffResourceField

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A property/field in a GffResource.

public abstract class GffResourceField
Inheritance
GffResourceField
Derived
Inherited Members
Extension Methods

Constructors

GffResourceField(CResGFF)

A property/field in a GffResource.

Fields

ResGff

Properties

Count

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

Gets the GFF field type.

HasChildren

Gets whether this field contains child values.

this[int]

Gets the child GffResourceField at the specified index.

this[string]

Gets the child GffResourceField with the specified key.

Keys

If this field is a struct, gets an enumerable of the struct's keys.
Otherwise, returns an empty enumerable.

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.

Methods

ContainsKey(string)

If this field is a GffResourceFieldStruct, determines if the specified key exists in the structure.

GetValueInternal(out object?, Type?)
ToString()

Returns a string that represents the current object.

TryGetValue(string, out GffResourceField?)

If this field is a GffResourceFieldStruct, gets the value associated with the specified key.

Value()

Gets the value of this field.

ValueOrDefault()

Gets the value of this field.

ValueOrDefault<T>()

Gets the value of this field.

Value<T>()

Gets the value of this field.

Operators

explicit operator byte(GffResourceField)
explicit operator double(GffResourceField)
explicit operator short(GffResourceField)
explicit operator int(GffResourceField)
explicit operator long(GffResourceField)
explicit operator float(GffResourceField)
explicit operator string?(GffResourceField)
explicit operator ushort(GffResourceField)
explicit operator uint(GffResourceField)
explicit operator ulong(GffResourceField)