disconnect on death

This commit is contained in:
Eduardo Bart
2012-01-07 03:10:02 -02:00
parent 56aa416fee
commit 806fb5995f
5 changed files with 33 additions and 13 deletions

View File

@@ -56,5 +56,9 @@ function Game.onConnectionError(message)
errorBox.onOk = CharacterList.show
end
function Game.onDeath()
print('dead')
end
connect(Game, { onLogin = Game.createInterface }, true)
connect(Game, { onLogout = Game.destroyInterface })