- Source:
Members
-
<static> types :Object
-
Behavior class map.
Type:
- Object
- Source:
-
entity :Entity
-
Reference to the entity
Type:
- Source:
-
type :String
-
Type of this behavior.
Every behavior should have a unique type!Type:
- String
- Source:
Methods
-
<static> register(type, ctor)
-
Register a Behavior
Parameters:
Name Type Description type
String Type of this Behavior
ctor
function Class of this behavior
- Source:
-
init(entity [, settings])
-
Initialize
Parameters:
Name Type Argument Description entity
Entity Entity of this behavior
settings
Object <optional>
Settings to merge
- Source: