예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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