Packageverlocity.core
Classpublic final class ComponentManager
InheritanceComponentManager Inheritance Singleton Inheritance Object



Public Methods
 MethodDefined By
  
Creates a new holder for the components.
ComponentManager
  
_Destruct():void
[override] Removes all registered components and their data.
ComponentManager
 Inherited
_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
  
Register(component:Component, ... required):void
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
Constructor Detail
ComponentManager()Constructor
public function ComponentManager()

Creates a new holder for the components.

Method Detail
_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.

Returns
*
GetAll()method 
public static function GetAll():Dictionary

Returns all active components.

Returns
Dictionary
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.