Turret ammo sync

This commit is contained in:
Anuken
2024-07-16 14:17:10 -04:00
parent afc8d5e396
commit 2f1f334d65
4 changed files with 22 additions and 2 deletions

View File

@@ -261,6 +261,14 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
read(read, revision);
}
public void writeSync(Writes write){
writeAll(write);
}
public void readSync(Reads read, byte revision){
readAll(read, revision);
}
@CallSuper
public void write(Writes write){
//overriden by subclasses!