FgdEditorData

class fgdtools.FgdEditorData(class_type, data=None, name=None)[source]

Editor data, as represented in a Fgd file. Usually of types such as: @include, @mapsize, @MaterialExclusion or @AutoVisGroup.

__init__(class_type, data=None, name=None)[source]

Creates an instance of FgdEditorData.

Parameters
  • class_type (str) – The editor_data’s type. Ex: ‘mapsize’, ‘MaterialExclusion’, ‘AutoVisGroup’, etc…

  • name (str) – The editor_data’s display name.

  • data (str or tuple or list or dict) – The editor_data’s data.

__repr__()[source]

A partial, printable summary of a FgdEditorData.

Returns

A Python formated string.

Return type

str

property class_type

The editor_data’s type.

Return type

str

property name

The editor_data’s name.

Return type

str

property data

The editor_data’s data, in the type that best matches class_type.

Return type

str or tuple or list or dict

fgd_str()[source]

A string representation of FgdEditorData formated as in the a .fgd file.

Returns

Fgd formated string.

Return type

str