Implement saving tower records

This commit is contained in:
Melledy
2025-10-28 05:47:01 -07:00
parent 276d9f9002
commit d89acec89c
7 changed files with 207 additions and 36 deletions
@@ -44,6 +44,30 @@ public class Formation {
return this.discIds[i];
}
public int getCharCount() {
int count = 0;
for (int id : this.getCharIds()) {
if (id > 0) {
count++;
}
}
return count;
}
public int getDiscCount() {
int count = 0;
for (int id : this.getDiscIds()) {
if (id > 0) {
count++;
}
}
return count;
}
// Proto
public FormationInfo toProto() {