Fix serialisation issue

This commit is contained in:
Felix Koppe
2024-12-03 15:38:13 +01:00
parent a0a088a0c4
commit db50986f3f
4 changed files with 12 additions and 1 deletions

View File

@@ -1,9 +1,12 @@
package pp.mdga.game;
import com.jme3.network.serializing.Serializable;
/**
* This enumeration will be used to show the four different TSK which can be picked from a player.
* In Addition, the NONE color will be used to show a none color.
*/
@Serializable
public enum Color {
/**
* Represents the air force color.

View File

@@ -10,7 +10,7 @@ public class Node {
protected Piece occupant;
public Node(){
occupant = new Piece(Color.AIRFORCE, PieceState.WAITING);
}
/**

View File

@@ -1,8 +1,11 @@
package pp.mdga.game;
import com.jme3.network.serializing.Serializable;
/**
* Represents the state of a piece.
*/
@Serializable
public enum PieceState {
/**
* The piece is active.