Module nwn.gff

Generic File Format (gff)

Functions

NameDescription
compatStrToGffType(t) Converts a string compatible with niv tools to a GFF type
gffTypeToCompatStr(t) Converts a GFF type to a string compatible with niv tools
isGffNativeType() returns true if T is implicitly convertible to a GFF storage type

Classes

NameDescription
Gff Complete GFF file
GffJsonParseException Child node not found
GffNotFoundException Child node not found
GffParseException Parsing exception
GffTypeException Type mismatch (ex: trying to add a GffNode to a GffType.Int)
GffValueSetException Value doesn't match constraints (ex: label too long)

Structs

NameDescription
GffList Gff type List ( GffStruct[] )
GffLocString Gff type LocString (TLK ID + translations)
GffResRef Gff type ResRef (32-char string)
GffStruct Gff type Struct ( GffValue[string] )
GffValue GFF value that can contain any type of GFF node

Enums

NameDescription
GffType Type of data owned by a GffNode

Templates

NameDescription
gffTypeToNative Maps GffType to native D type

Aliases

NameTypeDescription
GffByte ubyte
GffChar byte
GffDouble double
GffDWord uint
GffDWord64 ulong
GffFloat float
GffInt int
GffInt64 long
GffNativeTypes List of all dlang types that can be stored in a GFF value
GffShort short
GffString string
GffVoid ubyte[] Gff type Void ( ubyte[] )
GffWord ushort
nativeToGffType GffType.Byte Converts a native type T to the associated GffType. Types must match exactly