def add_avatar(self, player_id, location): avatar = AvatarWrapper( player_id, location, AvatarAppearance("#000", "#ddd", "#777", "#fff") ) self.avatars_by_id[player_id] = avatar return avatar
def construct_default_avatar_appearance(self): return AvatarAppearance("#000", "#ddd", "#777", "#fff")
def add_avatar(self, player_id, worker_url, location): avatar = AvatarWrapper( location, player_id, worker_url, AvatarAppearance("#000", "#ddd", "#777", "#fff")) self.avatarsById[player_id] = avatar return avatar