Serializable -> JsonSerializable
This commit is contained in:
@@ -137,7 +137,7 @@ public class Rules{
|
||||
}
|
||||
|
||||
/** A simple map for storing TeamRules in an efficient way without hashing. */
|
||||
public static class TeamRules implements Serializable{
|
||||
public static class TeamRules implements JsonSerializable{
|
||||
final TeamRule[] values = new TeamRule[Team.all.length];
|
||||
|
||||
public TeamRule get(Team team){
|
||||
|
||||
@@ -18,7 +18,7 @@ import static mindustry.Vars.*;
|
||||
* weapon equipped, ammo used, and status effects.
|
||||
* Each spawn group can have multiple sub-groups spawned in different areas of the map.
|
||||
*/
|
||||
public class SpawnGroup implements Serializable{
|
||||
public class SpawnGroup implements JsonSerializable{
|
||||
public static final int never = Integer.MAX_VALUE;
|
||||
|
||||
/** The unit type spawned */
|
||||
|
||||
@@ -10,7 +10,7 @@ import mindustry.world.modules.ItemModule.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class ItemSeq implements Iterable<ItemStack>, Serializable{
|
||||
public class ItemSeq implements Iterable<ItemStack>, JsonSerializable{
|
||||
protected final int[] values = new int[Vars.content.items().size];
|
||||
public int total;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import mindustry.world.meta.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Attributes implements Serializable{
|
||||
public class Attributes implements JsonSerializable{
|
||||
private final float[] arr = new float[Attribute.all.length];
|
||||
|
||||
public void clear(){
|
||||
|
||||
Reference in New Issue
Block a user