def __init__(self, entity_class=Entity): """Initialize the dictionary.""" # Store the given entity class... self._entity_class = entity_class # Register our OnEntityDeleted listener... on_entity_deleted_listener_manager.register_listener( self._on_entity_deleted) # Initialize the dictionary... super(EntityDictionary, self).__init__()
def __init__(self, entity_class=Entity): """Initialize the dictionary.""" # Store the given entity class... self._entity_class = entity_class # Register our OnEntityDeleted listener... on_entity_deleted_listener_manager.register_listener( self._on_entity_deleted) # Initialize the dictionary... super().__init__()
def __init__(self, factory=Entity, *args, **kwargs): """Initialize the dictionary.""" # Store the given entity class... self._factory = factory # Store given arguments/keywords self._args = args self._kwargs = kwargs # Register our OnEntityDeleted listener... on_entity_deleted_listener_manager.register_listener( self._on_entity_deleted) # Initialize the dictionary... super().__init__()