Gff

class pynwn.Gff(content_object)

Represents a GFF file.

build_fields(structure)

Build a field list from the specified structure.

build_struct(sid)

Builds a structural representation of the specified struct id.

load()

Loads the source of the associated gff file.

save()

Saves the current version of the gff structure to the associated file.

scan(offset, length)

Scans the specified length from the specified offset in the open file, then returns to the previous position.

structure

Gets the structure, loading it if necessary.

to_dict(cursor=None)

Converts gff to dict.

Returns:A dictionary in the format of nwn-lib json output.