forked from External/mage
* Performance: memory usage optimization for deck editor (part 2 of removed bloated usage of ManaCosts -> ManaColor objects, see #7515);
This commit is contained in:
parent
c1dea5b21e
commit
10e557b873
25 changed files with 164 additions and 113 deletions
|
|
@ -88,6 +88,14 @@ public interface MageObject extends MageItem, Serializable {
|
|||
|
||||
ManaCosts<ManaCost> getManaCost();
|
||||
|
||||
default List<String> getManaCostSymbols() {
|
||||
List<String> symbols = new ArrayList<>();
|
||||
for (ManaCost cost : getManaCost()) {
|
||||
symbols.add(cost.getText());
|
||||
}
|
||||
return symbols;
|
||||
}
|
||||
|
||||
int getConvertedManaCost();
|
||||
|
||||
MageInt getPower();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue