Constructors
Creature.__new()
Properties
Type |
Getter |
Setter |
Static |
Default |
Description |
EUID |
get_EcosystemId() |
set_EcosystemId(val) |
|
|
The Ecosystem ID this creature lives in |
number |
get_Food() |
set_Food(val) |
|
|
|
number |
get_FoodLimit() |
set_FoodLimit(val) |
|
|
|
number |
get_HungerPerTickRatio() |
set_HungerPerTickRatio(val) |
|
|
|
Functions
Requires an instance!
IsHungry
_OnHungry
Save
Load(CreatureData)
Load(data: CreatureData) -> nil
Type |
Name |
Description |
CreatureData |
data |
|
OnEcosystemEntered(Ecosystem)
Invoked when the creature enters an ecosystem
OnEcosystemEntered(ecosystem: Ecosystem) -> nil
Type |
Name |
Description |
Ecosystem |
ecosystem |
|
OnEcosystemExited(Ecosystem)
The ecosystem the creature left
OnEcosystemExited(ecosystem: Ecosystem) -> nil
Type |
Name |
Description |
Ecosystem |
ecosystem |
|