def removeAvatarFriend(self, avId): AvatarFriendsManager.removeAvatarFriend(self, avId) self.avatarId2ShipState.pop(avId, None) shipId = self.avatarId2ShipId.get(avId, 0) if shipId: self.shipId2ShipState.pop(avId, None) self.avatarId2ShipId.pop(avId, None)
def updateAvatarFriend(self, id, info): pcinfo = PCFriendAvatarInfo.makeFromFriendInfo(info) AvatarFriendsManager.updateAvatarFriend(self, id, pcinfo)
def __init__(self, cr): AvatarFriendsManager.__init__(self, cr) self.avatarId2ShipState = { } self.avatarId2ShipId = { } self.shipId2ShipState = { }