41 lines
1.1 KiB
Lua
41 lines
1.1 KiB
Lua
return{
|
|
init = function(object)
|
|
|
|
dofile("scripts/mods/vmf/modules/dev_console")
|
|
dofile("scripts/mods/vmf/modules/mods")
|
|
dofile("scripts/mods/vmf/modules/hooks")
|
|
dofile("scripts/mods/vmf/modules/gui")
|
|
dofile("scripts/mods/vmf/modules/settings")
|
|
dofile("scripts/mods/vmf/modules/vmf_options_view")
|
|
|
|
--Application.set_user_setting("mod_developer_mode", true)
|
|
--Application.save_user_settings()
|
|
|
|
object.vmf = get_mod("VMF")
|
|
|
|
-- temporary solution:
|
|
dofile("scripts/mods/vmf/modules/testing_stuff_here")
|
|
end,
|
|
|
|
update = function(object, dt)
|
|
--print("UPDATE: " .. tostring(dt))
|
|
object.vmf.mods_update(dt)
|
|
end,
|
|
|
|
on_unload = function(object)
|
|
print("VMF:ON_UNLOAD()")
|
|
object.vmf = nil
|
|
end,
|
|
|
|
on_reload = function(object)
|
|
print("VMF:ON_RELOAD()")
|
|
object.vmf.mods_unload()
|
|
object.vmf.hooks_unload()
|
|
object.vmf.save_unsaved_settings_to_file()
|
|
end,
|
|
|
|
on_game_state_changed = function(object, status, state)
|
|
print("VMF:ON_GAME_STATE_CHANGED(), status: " .. tostring(status) .. ", state: " .. tostring(state))
|
|
object.vmf.save_unsaved_settings_to_file()
|
|
end
|
|
}
|