events.variable module

Provides variable types to be used with custom events.

class events.variable.BoolVariable(comment='', default=None)[source]

Bases: events.variable._EventVariable

Class used to store bool event variables.

method = 'bool'
class events.variable.ByteVariable(comment='', default=None)[source]

Bases: events.variable._EventVariable

Class used to store byte event variables.

method = 'int'
class events.variable.FloatVariable(comment='', default=None)[source]

Bases: events.variable._EventVariable

Class used to store floating point event variables.

method = 'float'
class events.variable.LongVariable(comment='', default=None)[source]

Bases: events.variable._EventVariable

Class used to store long event variables.

method = 'int'
class events.variable.ShortVariable(comment='', default=None)[source]

Bases: events.variable._EventVariable

Class used to store short event variables.

method = 'int'
class events.variable.StringVariable(comment='', default=None)[source]

Bases: events.variable._EventVariable

Class used to store string event variables.

method = 'string'
class events.variable._EventVariable(comment='', default=None)[source]

Bases: object

Base class used for event variable types.

__init__(comment='', default=None)[source]

Called on instantiation.

method

Raise an error if the inheriting class does not have their own.

name

Return the variable type name.