server support for client synced btree state requests
This commit is contained in:
parent
d409c3adef
commit
df5cc5a146
@ -1,5 +1,6 @@
|
||||
package electrosphere.net.synchronization;
|
||||
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
@ -70,7 +71,7 @@ public class ServerSynchronizationManager {
|
||||
/**
|
||||
* <p> Automatically generated </p>
|
||||
* <p>
|
||||
* Updates the state of a given behavior tree on a given entity
|
||||
* Performs actions requested by the client
|
||||
* </p>
|
||||
* @param entity The entity
|
||||
* @param bTreeId The id of the behavior tree
|
||||
@ -79,9 +80,10 @@ public class ServerSynchronizationManager {
|
||||
private void updateEntityState(Entity entity, int bTreeId, SynchronizationMessage message){
|
||||
switch(bTreeId){
|
||||
case BehaviorTreeIdEnums.BTREE_CLIENTJUMPTREE_ID: {
|
||||
ServerJumpTree serverJumpTree = ServerJumpTree.getServerJumpTree(entity);
|
||||
serverJumpTree.start();
|
||||
ServerJumpTree tree = ServerJumpTree.getServerJumpTree(entity);
|
||||
tree.start();
|
||||
} break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user