server support for client synced btree state requests

This commit is contained in:
austin 2024-07-31 18:16:37 -04:00
parent d409c3adef
commit df5cc5a146

View File

@ -1,5 +1,6 @@
package electrosphere.net.synchronization; package electrosphere.net.synchronization;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.CopyOnWriteArrayList;
@ -70,7 +71,7 @@ public class ServerSynchronizationManager {
/** /**
* <p> Automatically generated </p> * <p> Automatically generated </p>
* <p> * <p>
* Updates the state of a given behavior tree on a given entity * Performs actions requested by the client
* </p> * </p>
* @param entity The entity * @param entity The entity
* @param bTreeId The id of the behavior tree * @param bTreeId The id of the behavior tree
@ -79,9 +80,10 @@ public class ServerSynchronizationManager {
private void updateEntityState(Entity entity, int bTreeId, SynchronizationMessage message){ private void updateEntityState(Entity entity, int bTreeId, SynchronizationMessage message){
switch(bTreeId){ switch(bTreeId){
case BehaviorTreeIdEnums.BTREE_CLIENTJUMPTREE_ID: { case BehaviorTreeIdEnums.BTREE_CLIENTJUMPTREE_ID: {
ServerJumpTree serverJumpTree = ServerJumpTree.getServerJumpTree(entity); ServerJumpTree tree = ServerJumpTree.getServerJumpTree(entity);
serverJumpTree.start(); tree.start();
} break; } break;
} }
} }