raise GameError('name already in use')
if connection_id in game.sessions:
raise GameError('cannot log in twice')
t = game.thing_types['Player'](game)
t.position = YX(game.map.size.y // 2, game.map.size.x // 2)
game.things += [t] # TODO refactor into Thing.__init__?
raise GameError('name already in use')
if connection_id in game.sessions:
raise GameError('cannot log in twice')
t = game.thing_types['Player'](game)
t.position = YX(game.map.size.y // 2, game.map.size.x // 2)
game.things += [t] # TODO refactor into Thing.__init__?