nwn.gff

Generic File Format (gff)

Members

Aliases

GffByte
alias GffByte = uint8_t
Undocumented in source.
GffChar
alias GffChar = int8_t
Undocumented in source.
GffDWord
alias GffDWord = uint32_t
Undocumented in source.
GffDWord64
alias GffDWord64 = uint64_t
Undocumented in source.
GffDouble
alias GffDouble = double
Undocumented in source.
GffFloat
alias GffFloat = float
Undocumented in source.
GffInt
alias GffInt = int32_t
Undocumented in source.
GffInt64
alias GffInt64 = int64_t
Undocumented in source.
GffNativeTypes
alias GffNativeTypes = AliasSeq!(GffByte, GffChar, GffWord, GffShort, GffDWord, GffInt, GffDWord64, GffInt64, GffFloat, GffDouble, GffString, GffResRef, GffLocString, GffVoid, GffStruct, GffList, GffValue)

List of all dlang types that can be stored in a GFF value

GffShort
alias GffShort = int16_t
Undocumented in source.
GffString
alias GffString = string
Undocumented in source.
GffVoid
alias GffVoid = ubyte[]

Gff type Void ( ubyte[] )

GffWord
alias GffWord = uint16_t
Undocumented in source.

Classes

Gff
class Gff

Complete GFF file

GffJsonParseException
class GffJsonParseException

Child node not found

GffNotFoundException
class GffNotFoundException

Child node not found

GffParseException
class GffParseException

Parsing exception

GffTypeException
class GffTypeException

Type mismatch (ex: trying to add a GffNode to a GffType.Int)

GffValueSetException
class GffValueSetException

Value doesn't match constraints (ex: label too long)

Enums

GffType
enum GffType

Type of data owned by a GffNode

Functions

compatStrToGffType
GffType compatStrToGffType(string t)

Converts a string compatible with niv tools to a GFF type

gffTypeToCompatStr
string gffTypeToCompatStr(GffType t)

Converts a GFF type to a string compatible with niv tools

Structs

GffList
struct GffList

Gff type List ( GffStruct[] )

GffLocString
struct GffLocString

Gff type LocString (TLK ID + translations)

GffResRef
struct GffResRef

Gff type ResRef (32-char string)

GffStruct
struct GffStruct

Gff type Struct ( GffValue[string] )

GffValue
struct GffValue

GFF value that can contain any type of GFF node

Templates

gffTypeToNative
template gffTypeToNative(GffType t)

Maps GffType to native D type

isGffNativeType
template isGffNativeType(T)

returns true if T is implicitly convertible to a GFF storage type

nativeToGffType
template nativeToGffType(T)

Converts a native type T to the associated GffType. Types must match exactly

Meta