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

@@ -224,6 +224,8 @@ public abstract class SaveVersion extends SaveFileReader{
stream.writeInt(Groups.sync.size());
for(Syncc entity : Groups.sync){
if(!entity.serialize()) continue;
writeChunk(stream, true, out -> {
out.writeByte(entity.classId());
entity.write(out);