FgdEntityPropertyChoice

class valvefgd.FgdEntityPropertyChoice(value, display_name)[source]

A property choice, as found in entity properties of type “choices”.

__init__(value, display_name)[source]

Creates an instance of FgdEntityPropertyChoice.

Parameters:
  • value (str) – The choice’s value.

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

__repr__()[source]

A full, printable representation of a FgdEntityPropertyChoice.

Returns:

A Python formated string.

Return type:

str

property schema

A schematic view of this property choice.

Returns:

A dictionary

Return type:

dict

property value

The choice’s value.

Return type:

str

property display_name

The choice’s display name.

Return type:

str

fgd_str()[source]

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

Returns:

Fgd formated string.

Return type:

str