Fix idle animation tree not working on client
This commit is contained in:
parent
174126912e
commit
b2a7b8e93e
77
docs/src/drawcell/DrawCell.md
Normal file
77
docs/src/drawcell/DrawCell.md
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Draw Cells
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
|
||||||
|
## High Level Overview
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Major Usage Notes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Main Classes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Library Explanation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Code Organization and Best Practices
|
||||||
|
|
||||||
|
#### Startup
|
||||||
|
|
||||||
|
|
||||||
|
#### Usage
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Terminology
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Future Goals
|
||||||
@ -369,7 +369,9 @@ public class CreatureUtils {
|
|||||||
rVal.putData(EntityDataStrings.LIFE_STATE, new LifeState(rVal, rawType.getHealthSystem()));
|
rVal.putData(EntityDataStrings.LIFE_STATE, new LifeState(rVal, rawType.getHealthSystem()));
|
||||||
Globals.clientScene.registerEntityToTag(rVal, EntityTags.LIFE_STATE);
|
Globals.clientScene.registerEntityToTag(rVal, EntityTags.LIFE_STATE);
|
||||||
//idle tree & generic stuff all creatures have
|
//idle tree & generic stuff all creatures have
|
||||||
rVal.putData(EntityDataStrings.IDLE_TREE, new IdleTree(rVal));
|
IdleTree idleTree = new IdleTree(rVal);
|
||||||
|
rVal.putData(EntityDataStrings.IDLE_TREE, idleTree);
|
||||||
|
Globals.clientScene.registerBehaviorTree(idleTree);
|
||||||
Globals.clientScene.registerEntityToTag(rVal, EntityTags.CREATURE);
|
Globals.clientScene.registerEntityToTag(rVal, EntityTags.CREATURE);
|
||||||
rVal.putData(EntityDataStrings.DATA_STRING_CREATURE_IS_CREATURE, true);
|
rVal.putData(EntityDataStrings.DATA_STRING_CREATURE_IS_CREATURE, true);
|
||||||
rVal.putData(EntityDataStrings.DATA_STRING_CREATURE_TYPE, type);
|
rVal.putData(EntityDataStrings.DATA_STRING_CREATURE_TYPE, type);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user