new AspectSubscriptionManager(world)
Manage All instances of EntitySubscription
Parameters:
Name | Type | Description |
---|---|---|
world |
World |
Members
-
<static> EntitySubscriptions :Object
-
Component Type of component object
Type:
- Object
-
<static> managers :ComponentType
-
Component Type of component object
Type:
- ComponentType
-
<static> world :World
-
Copy of World instance
Type:
Methods
-
createSubscription(aspect)
-
Create an new Entity subscription and
Parameters:
Name Type Description aspect
Aspect An aspect object
Returns:
EntitySubscription linked to the aspect
- Type
- EntitySubscription
-
getSubscription(aspect)
-
Get a subscription linked to the given aspect
Parameters:
Name Type Description aspect
Aspect -
Returns:
EntitySubscription linked to the given aspect
- Type
- EntitySubscription
-
process(Changed, Removed)
-
Process of AspectSubscriptionManager
Parameters:
Name Type Description Changed
Array Id entities
Removed
Array Id entities
-
registerManager(manager)
-
Register a new manager
Parameters:
Name Type Description manager
Manager An inherited class of "manager"