mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Implement saving tower records
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user