FgdEntitySpawnflag

class fgdtools.FgdEntitySpawnflag(value='', display_name='', default_value=None)[source]

An entity Spawnflag, as represented in a Fgd file.

__init__(value='', display_name='', default_value=None)[source]

Creates an instance of FgdEntitySpawnflag.

Parameters
  • value (int) – The spawnflag’s value.

  • display_name (str) – The spawnflag’s display_name.

  • default_value (bool) – The spawnflag’s default_value.

__repr__()[source]

A full, printable representation of a FgdEntitySpawnflag.

Returns

A Python formated string.

Return type

str

property schema

A schematic view of this Spawnflag.

Returns

A dictionary

Return type

dict

property value

The spawnflag’s value.

Return type

int

property display_name

The spawnflag’s display name.

Return type

str

property default_value

The spawnflag’s default value.

Return type

int

fgd_str()[source]

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

Returns

Fgd formated string.

Return type

str