entities.dictionary module

Provides helper class to store entity instances.

class entities.dictionary.EntityDictionary(factory=<class 'entities._base.Entity'>, *args, **kwargs)[source]

Bases: core.AutoUnload, dict

Helper class used to store entity instances.

__init__(factory=<class 'entities._base.Entity'>, *args, **kwargs)[source]

Initialize the dictionary.

from_inthandle(inthandle)[source]

Get an entity instance from an inthandle.

Parameters:inthandle (int) – The inthandle.
Return type:Entity
on_automatically_removed(index)[source]

Called when an index is automatically removed.