mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Add a TODO to game sim code.
This commit is contained in:
@@ -191,6 +191,11 @@ public class GameCopier {
|
|||||||
newCard = CardFactory.makeToken(CardFactory.TokenInfo.fromString(tokenStr), owner).get(0);
|
newCard = CardFactory.makeToken(CardFactory.TokenInfo.fromString(tokenStr), owner).get(0);
|
||||||
} else {
|
} else {
|
||||||
newCard = Card.fromPaperCard(c.getPaperCard(), owner);
|
newCard = Card.fromPaperCard(c.getPaperCard(), owner);
|
||||||
|
// TODO: The above is very expensive and accounts for the vast majority of GameCopier execution time.
|
||||||
|
// The issue is that it requires parsing the original card from scratch from the paper card. We should
|
||||||
|
// improve the copier to accurately copy the card from its actual state, so that the paper card shouldn't
|
||||||
|
// be needed. Then, we can construct the card via:
|
||||||
|
// newCard = new Card(newGame.nextCardId(), newGame);
|
||||||
}
|
}
|
||||||
cardMap.put(c, newCard);
|
cardMap.put(c, newCard);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user