mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Use new coding style in game modules
Lots of refactoring and changes Remove docs folder
This commit is contained in:
@@ -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
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user