Component
A helper class.
Since there are no interfaces in JavaScript,
you might have to extend this to create a component, but there is another solution.
Use instead `Component.implement()` if you have your own hierarchy of classes.
In typescript,this would be an interface.
Members
CHAOS_OBJ_TYPE :string
- Source:
Type:
CHOAS_CLASSNAME :string
- Source:
Type:
Methods
fromJson(obj, system)
- Source:
Parameters:
Name |
Type |
Description |
obj |
*
|
|
system |
T
|
|
get(entity, n)
- Source:
- Deprecated:
Parameters:
Name |
Type |
Description |
entity |
Entity
|
|
n |
string
|
|
init(entity)
- Source:
Parameters:
Name |
Type |
Description |
entity |
Entity
|
|
query(entity, bound, targetopt) → {Array.<Entity>}
- Source:
- Deprecated:
Parameters:
Returns:
-
Type
-
Array.<Entity>
requires(entity, …names)
- Source:
Parameters:
Name |
Type |
Attributes |
Description |
entity |
Entity
|
|
|
names |
string
|
<repeatable>
|
|
toJson() → {*}
- Source:
Returns:
-
Type
-
*
update(dt)
- Source:
- Deprecated:
Parameters:
Name |
Type |
Description |
dt |
number
|
|