small improvements

This commit is contained in:
honfika@gmail.com
2016-03-22 17:20:38 +01:00
parent c95af115b9
commit b004a6790b
5 changed files with 25 additions and 43 deletions

View File

@@ -440,6 +440,21 @@ public final class SWF implements SWFContainerItem, Timelined {
return characterIdTags.get(characterId);
}
public CharacterIdTag getCharacterIdTag(int characterId, int tagId) {
List<CharacterIdTag> characterIdTags = getCharacterIdTags(characterId);
if (characterIdTags != null) {
for (CharacterIdTag t : characterIdTags) {
if (((Tag) t).getId() == tagId) {
if (t.getCharacterId() == characterId) {
return t;
}
}
}
}
return null;
}
public Map<Integer, Set<Integer>> getDependentCharacters() {
if (dependentCharacters == null) {
synchronized (this) {