Package | verlocity.core |
Class | public final class ComponentManager |
Inheritance | ComponentManager Singleton Object |
Method | Defined By | ||
---|---|---|---|
Creates a new holder for the components. | ComponentManager | ||
_Destruct():void [override]
Removes all registered components and their data. | ComponentManager | ||
_IsValid():Boolean
Returns if this singleton is active/valid. | Singleton | ||
_SetUpdateAll(bPause:Boolean):void [static]
Sets if all the components should be updated. | ComponentManager | ||
_UpdateAll():void [static]
Updates all components (called by verEngine)
| ComponentManager | ||
Get(componentClass:Object):*
Gets a registered component. | ComponentManager | ||
GetAll():Dictionary [static]
Returns all active components. | ComponentManager | ||
Registers a component to the component manager. | ComponentManager | ||
Remove(componentClass:Object):void [static]
Destroys a registered component. | ComponentManager | ||
RemoveAll():void
Removes all the registered components. | ComponentManager | ||
Unregister(componentClass:Object):void [static]
Unregisters a registered component. | ComponentManager |
ComponentManager | () | Constructor |
public function ComponentManager()
Creates a new holder for the components.
_Destruct | () | method |
override public function _Destruct():void
Removes all registered components and their data.
_SetUpdateAll | () | method |
public static function _SetUpdateAll(bPause:Boolean):void
Sets if all the components should be updated.
Parameters
bPause:Boolean |
_UpdateAll | () | method |
public static function _UpdateAll():void
Updates all components (called by verEngine)
Get | () | method |
public function Get(componentClass:Object):*
Gets a registered component.
Parameters
componentClass:Object — The component class.
|
* —
|
GetAll | () | method |
public static function GetAll():Dictionary
Returns all active components.
ReturnsDictionary |
Register | () | method |
public function Register(component:Component, ... required):void
Registers a component to the component manager.
Parameters
component:Component — The component to register.
| |
... required — (array) The list of required components before this component can be created.
|
Remove | () | method |
public static function Remove(componentClass:Object):void
Destroys a registered component.
Parameters
componentClass:Object — The component class.
|
RemoveAll | () | method |
public function RemoveAll():void
Removes all the registered components.
Unregister | () | method |
public static function Unregister(componentClass:Object):void
Unregisters a registered component.
Parameters
componentClass:Object — The component class.
|