Serializable -> JsonSerializable

This commit is contained in:
Anuken
2021-02-12 15:41:28 -05:00
parent 146b2589e2
commit 2e6b90d4d5
7 changed files with 57 additions and 12 deletions

View File

@@ -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){

View File

@@ -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 */

View File

@@ -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;

View File

@@ -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(){