effects.templates module

Base templates for effect classes.

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

Bases: _effects._base.BaseTempEntity

A temp entity template.


Initialize the instance.

Parameters:temp_entity (BaseTempEntity) – The base entity instance to copy the base from.

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.

Return the aliases of the temp entity.

Return type:GameConfigObj

Return the properties data of the temp entity.

Return type:dict

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.