mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 02:56:44 +00:00
Added serialization code for CubotRepair
This commit is contained in:
parent
eef0ddf99b
commit
87feb6a280
@ -60,6 +60,8 @@ public class CubotPlugin extends ServerPlugin implements GameObjectDeserializer,
|
|||||||
return CubotFloppyDrive.deserialize(hwJson);
|
return CubotFloppyDrive.deserialize(hwJson);
|
||||||
case CubotComPort.HWID:
|
case CubotComPort.HWID:
|
||||||
return CubotComPort.deserialize(hwJson);
|
return CubotComPort.deserialize(hwJson);
|
||||||
|
case CubotRepair.HWID:
|
||||||
|
return CubotRepair.deserialize(hwJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -61,4 +61,7 @@ public class CubotRepair extends CpuHardware {
|
|||||||
return HWID;
|
return HWID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static CubotRepair deserialize(JSONObject json) {
|
||||||
|
return new CubotRepair((Cubot) GameServer.INSTANCE.getGameUniverse().getObject((int) (long) json.get("cubot")));
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user