Add image number support for command objects (#10774)

This commit is contained in:
PurpleCrowbar 2023-08-10 00:47:32 +01:00 committed by GitHub
parent 08bf721790
commit d9a23d505a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 1 deletions

View file

@ -15,6 +15,7 @@ public class EmblemView implements CommandObjectView, Serializable {
protected UUID id;
protected String name;
protected int imageNum;
protected String expansionSetCode;
protected List<String> rules;
protected PlayableObjectStats playableStats = new PlayableObjectStats();
@ -22,6 +23,7 @@ public class EmblemView implements CommandObjectView, Serializable {
public EmblemView(Emblem emblem) {
this.id = emblem.getId();
this.name = emblem.getName();
this.imageNum = emblem.getImageNumber();
this.expansionSetCode = emblem.getExpansionSetCode();
this.rules = emblem.getAbilities().getRules(emblem.getName());
}
@ -41,6 +43,11 @@ public class EmblemView implements CommandObjectView, Serializable {
return id;
}
@Override
public int getImageNumber() {
return imageNum;
}
@Override
public List<String> getRules() {
return rules;