Autogeneration of some IO code

This commit is contained in:
Anuken
2020-02-13 13:30:30 -05:00
parent 47f075133f
commit ad248e2e20
40 changed files with 163 additions and 74 deletions

View File

@@ -12,8 +12,8 @@ import static mindustry.Vars.player;
@Component
@BaseComponent
abstract class EntityComp{
private boolean added;
int id = EntityGroup.nextId();
private transient boolean added;
transient int id = EntityGroup.nextId();
boolean isAdded(){
return added;
@@ -49,6 +49,9 @@ abstract class EntityComp{
@InternalImpl
abstract int classId();
@InternalImpl
abstract boolean serialize();
void read(DataInput input) throws IOException{
//TODO dynamic io
}