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,6 +1,4 @@
TibiaFiles = {}
function TibiaFiles.init()
function init()
if not g_things.loadDat('/game_tibiafiles/Tibia.dat') then
fatal(tr("Unable to load dat file, please place a valid Tibia dat in modules/game_tibiafiles/Tibia.dat"))
end
@@ -9,5 +7,5 @@ function TibiaFiles.init()
end
end
function TibiaFiles.terminate()
function terminate()
end

View File

@@ -2,10 +2,7 @@ Module
name: game_tibiafiles
description: Contains tibia spr and dat
reloadable: false
@onLoad: |
dofile 'tibiafiles'
TibiaFiles.init()
@onUnload: |
TibiaFiles.terminate()
sandboxed: true
scripts: [tibiafiles.lua]
@onLoad: init()
@onUnload: terminate()