Added way to load modules to /interface

This commit is contained in:
Cooldude2606
2018-09-07 17:54:01 +01:00
parent e14c3a68b9
commit cd5abfc225
5 changed files with 20 additions and 4 deletions

View File

@@ -311,6 +311,7 @@ script.on_event('on_rocket_launched',Sync.emit_update)
function Sync:on_init()
if loaded_modules['ExpGamingCore.Gui'] then verbose('ExpGamingCore.Gui is installed; Loading gui src') require(module_path..'/src/gui',{Sync=Sync}) end
if loaded_modules['ExpGamingCore.Ranking'] then verbose('ExpGamingCore.Ranking is installed; Loading ranking src') require(module_path..'/src/ranking',{Sync=Sync}) end
if loaded_modules['ExoGamingCore.Server'] then Server.add_module_to_interface('Sync') end
end
function Sync:on_post()