replace character id from command line

This commit is contained in:
honfika@gmail.com
2015-07-21 20:55:45 +02:00
parent 2e5ae046a6
commit 183c84b320
2 changed files with 69 additions and 7 deletions

View File

@@ -2885,6 +2885,12 @@ public final class SWF implements SWFContainerItem, Timelined {
}
}
public boolean replaceCharacter(int oldCharacterId, int newCharacterId) {
for (Tag tag : tags) {
tag.replaceCharacter(oldCharacterId, newCharacterId);
}
}
public void replaceCharacterTags(CharacterTag characterTag, int newCharacterId) {
int characterId = characterTag.getCharacterId();
CharacterTag newCharacter = getCharacter(newCharacterId);