Struct GffField

GFF generic value (used for GffStruct children). This can be used as a Variant.

struct GffField ;

Properties

NameTypeDescription
label[get] stringGet the label of this field
type[get] GffTypeValue type
value[get] std.variant.VariantN!(32L,ubyte,byte,ushort,short,uint,int,ulong,long,float,double,string,nwn.fastgff.GffResRef,nwn.fastgff.GffLocString,ubyte[],nwn.fastgff.GffStruct,nwn.fastgff.GffList)Get the value as a Variant

Methods

NameDescription
opIndex (label) Shorthand for getting child field assuming this field is a GffStruct
opIndex (index) Shorthand for getting child field assuming this field is a GffList
to ()
toPrettyString (tabs) Serialize the field and its children in a human-readable format
toString () Serialize the field in a human-readable format. Does not represents struct or list children.

Aliases

NameDescription
Value