ui test data + ClientSynchronizationManager fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-04-14 17:50:33 -04:00
parent 7bc23c1c95
commit 5cdf0fa39b
11 changed files with 57 additions and 18 deletions

View File

@ -1475,6 +1475,8 @@ Inventory audio work
Comment out script engine file watching for testing purposes
Crafting panel recipe filtering by tag
Stone Axe crafting
ClientSynchronizationManager null tree fix
Update ui test data

View File

@ -161,15 +161,21 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_STATE_ID:{
ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity);
if(tree != null){
tree.setState(ClientAttackTree.getAttackTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_DRIFTSTATE_ID:{
ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity);
if(tree != null){
tree.setDriftState(ClientAttackTree.getAttackTreeDriftStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_CURRENTMOVEID_ID:{
ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity);
if(tree != null){
tree.setCurrentMoveId(message.getstringValue());
}
} break;
}
} break;
@ -177,11 +183,15 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERBLOCKTREE_SYNCEDFIELD_STATE_ID:{
ClientBlockTree tree = ClientBlockTree.getClientBlockTree(entity);
if(tree != null){
tree.setState(ClientBlockTree.getBlockStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
case FieldIdEnums.TREE_SERVERBLOCKTREE_SYNCEDFIELD_CURRENTBLOCKVARIANT_ID:{
ClientBlockTree tree = ClientBlockTree.getClientBlockTree(entity);
if(tree != null){
tree.setCurrentBlockVariant(message.getstringValue());
}
} break;
}
} break;
@ -193,7 +203,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERTOOLBARSTATE_SYNCEDFIELD_SELECTEDSLOT_ID:{
ClientToolbarState tree = ClientToolbarState.getClientToolbarState(entity);
if(tree != null){
tree.setSelectedSlot(message.getintValue());
}
} break;
}
} break;
@ -201,7 +213,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERGRAVITY_SYNCEDFIELD_STATE_ID:{
ClientGravityTree tree = ClientGravityTree.getClientGravityTree(entity);
if(tree != null){
tree.setState(ClientGravityTree.getGravityTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -209,7 +223,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERIDLE_SYNCEDFIELD_STATE_ID:{
ClientIdleTree tree = ClientIdleTree.getClientIdleTree(entity);
if(tree != null){
tree.setState(ClientIdleTree.getIdleTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -217,7 +233,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERCHARGESTATE_SYNCEDFIELD_CHARGES_ID:{
ClientChargeState tree = ClientChargeState.getClientChargeState(entity);
if(tree != null){
tree.setCharges(message.getintValue());
}
} break;
}
} break;
@ -225,7 +243,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERLIFETREE_SYNCEDFIELD_STATE_ID:{
ClientLifeTree tree = ClientLifeTree.getClientLifeTree(entity);
if(tree != null){
tree.setState(ClientLifeTree.getLifeStateEnumShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -233,7 +253,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERSTANCECOMPONENT_SYNCEDFIELD_STATE_ID:{
ClientStanceComponent tree = ClientStanceComponent.getClientStanceComponent(entity);
if(tree != null){
tree.setState(ClientStanceComponent.getCombatStanceShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -241,7 +263,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVEREDITORMOVEMENTTREE_SYNCEDFIELD_FACING_ID:{
ClientEditorMovementTree tree = ClientEditorMovementTree.getClientEditorMovementTree(entity);
if(tree != null){
tree.setFacing(ClientEditorMovementTree.getEditorMovementRelativeFacingShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -249,7 +273,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERGROUNDMOVEMENTTREE_SYNCEDFIELD_FACING_ID:{
ClientGroundMovementTree tree = ClientGroundMovementTree.getClientGroundMovementTree(entity);
if(tree != null){
tree.setFacing(ClientGroundMovementTree.getMovementRelativeFacingShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -257,15 +283,21 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_STATE_ID:{
ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity);
if(tree != null){
tree.setState(ClientJumpTree.getJumpStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_CURRENTFRAME_ID:{
ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity);
if(tree != null){
tree.setCurrentFrame(message.getintValue());
}
} break;
case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_CURRENTJUMPFORCE_ID:{
ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity);
if(tree != null){
tree.setCurrentJumpForce(message.getfloatValue());
}
} break;
}
} break;
@ -273,7 +305,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERSPRINTTREE_SYNCEDFIELD_STATE_ID:{
ClientSprintTree tree = ClientSprintTree.getClientSprintTree(entity);
if(tree != null){
tree.setState(ClientSprintTree.getSprintTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;
@ -281,7 +315,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERWALKTREE_SYNCEDFIELD_STATE_ID:{
ClientWalkTree tree = ClientWalkTree.getClientWalkTree(entity);
if(tree != null){
tree.setState(ClientWalkTree.getWalkStateShortAsEnum((short)message.getbTreeValue()));
}
} break;
}
} break;

View File

@ -1,6 +1,7 @@
package electrosphere.net.synchronization.transport;
import electrosphere.util.Utilities;
import electrosphere.entity.state.item.ServerChargeState;
import electrosphere.entity.state.item.ClientChargeState;
import electrosphere.entity.state.movement.editor.ServerEditorMovementTree;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 40 KiB