effects.templates module

Base templates for effect classes.

class effects.templates.TempEntityTemplate(temp_entity)[source]

Bases: _effects._base.BaseTempEntity

A temp entity template.

__init__(temp_entity)[source]

Initialize the instance.

Parameters:temp_entity (BaseTempEntity) – The base entity instance to copy the base from.
_add_properties(send_table)[source]

Parse the given send table and add all properties to the dictionary.

Parameters:send_table (SendTable) – The send table instance to parse.
static _get_type_size(type_name)[source]

Helper method returning the size of the given type.

Parameters:type_name (str) – The name of the type.
aliases

Return the aliases of the temp entity.

Return type:GameConfigObj
properties

Return the properties data of the temp entity.

Return type:dict
size

Return the size of the temp entity instance.

Return type:int
class effects.templates.TempEntityTemplates[source]

Bases: dict

Container class used to store the temp entity templates instances.