def GetCharacterAttributes(self, characterId): """Fetch a dictionary containing a copy of the attributes sent from the server for the character with characterId.""" for charEntry in ClientAPI.GetCharacterEntries(): if charEntry.CharacterId == characterId: return charEntry return None
def GetCharacterAttribute(self, characterId, attr): """Fetch the value of the given attribute for the given characterId.""" for charEntry in ClientAPI.GetCharacterEntries(): if charEntry.CharacterId == characterId: return charEntry[attr] return None
def GetCharacterIds(self): """Return a list containing the character ids of each character.""" rv = [] for charEntry in ClientAPI.GetCharacterEntries(): rv.append(charEntry.CharacterId) return rv