Added basic ground AI

This commit is contained in:
Anuken
2020-03-21 10:49:38 -04:00
parent d91ff744f2
commit d673167477
23 changed files with 211 additions and 71 deletions
+3 -3
View File
@@ -81,14 +81,14 @@ public class JsonIO{
}
});
json.setSerializer(Zone.class, new Serializer<Zone>(){
json.setSerializer(SectorPreset.class, new Serializer<SectorPreset>(){
@Override
public void write(Json json, Zone object, Class knownType){
public void write(Json json, SectorPreset object, Class knownType){
json.writeValue(object.name);
}
@Override
public Zone read(Json json, JsonValue jsonData, Class type){
public SectorPreset read(Json json, JsonValue jsonData, Class type){
return Vars.content.getByName(ContentType.zone, jsonData.asString());
}
});