new IntervalSystem(interval)
The interval System (based on artemis)
Parameters:
| Name | Type | Description |
|---|---|---|
interval |
number | interval's time |
Extends
Methods
-
begin()
-
Begin processing of system
- Inherited From:
-
buildAspectWithComponentsTypeName(allComponents, oneComponents, excludeComponents)
-
Build Aspect with ComponentsType Name
Parameters:
Name Type Description allComponentsArray.<String> Array of Components Type Name for aspect all components (entity need having all components type of the list)
oneComponentsArray.<String> Array of Components Type Name for aspect one components (entity need having one components type of the list)
excludeComponentsArray.<String> Array of Components Type Name for aspect exclude components (entity need haven't component type of the list)
- Inherited From:
-
checkProcessing()
-
Check if the system could be process.
- Inherited From:
- Overrides:
-
disable()
-
Disable System
- Inherited From:
-
enable()
-
Enable system
- Inherited From:
-
end()
-
End Processing of system
- Inherited From:
-
getEnabled()
-
Give the status boolean of system
- Inherited From:
Returns:
IsEnable
- Type
- boolean
-
getWorld()
-
Get the World
return {World}- Inherited From:
-
initialize()
-
Initialization of the EntitySystem
This one creates an EntitySubscription with the system's aspect and add a subscriptionListener- Inherited From:
-
insert(id)
-
Insert Subscription listener
Parameters:
Name Type Description idnumber id of the entity inserted
- Inherited From:
-
inserted(ids)
-
Inserted Subscription Listener (call the insert methods for each ids)
Parameters:
Name Type Description idsArray.<Number> Array of entity ids
- Inherited From:
-
process()
-
Processing of system, calls if check processing is true : begin, processSystem, end methods
- Inherited From:
-
<abstract> processSystem()
-
Process the system
Have to be impemented- Inherited From:
- Overrides:
-
remove(id)
-
Remove Subscription listener
Parameters:
Name Type Description idnumber id of the entity removed
- Inherited From:
-
removed(entities)
-
Removed Subscription Listener (call the remove methods for each ids)
Parameters:
Name Type Description entitiesArray.<Number> Array of entity ids
- Inherited From:
-
setWorld(world)
-
Set a world to the system
Parameters:
Name Type Description worldWorld -
- Inherited From: