Use new coding style in game modules

Lots of refactoring and changes
Remove docs folder
This commit is contained in:
Eduardo Bart
2012-07-24 02:30:08 -03:00
parent 1c3e630237
commit c54cd1fdf1
69 changed files with 1629 additions and 2634 deletions

View File

@@ -1,23 +1,19 @@
PlayerMount = {}
function PlayerMount.init()
function init()
if g_game.getFeature(GamePlayerMount) then
g_keyboard.bindKeyDown('Ctrl+R', PlayerMount.toggleMount, gameRootPanel)
g_keyboard.bindKeyDown('Ctrl+R', toggleMount, gameRootPanel)
end
end
function PlayerMount.terminate()
function terminate()
if g_game.getFeature(GamePlayerMount) then
g_keyboard.unbindKeyDown('Ctrl+R', gameRootPanel)
end
PlayerMount = nil
end
function PlayerMount.toggleMount()
function toggleMount()
g_game.mount(not g_game.isMounted())
end
function PlayerMount.dismount()
function dismount()
g_game.mount(false)
end