forked from External/mage
Add image number support for command objects (#10774)
This commit is contained in:
parent
08bf721790
commit
d9a23d505a
5 changed files with 24 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue