mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2024-12-24 14:59:22 +03:00
41 lines
777 B
Lua
41 lines
777 B
Lua
local breakSocketHandle, debugXpCall
|
|
if NG_HSOD_DEBUG then
|
|
breakSocketHandle,debugXpCall = require("LuaDebug")("0.0.0.0",7003)
|
|
end
|
|
common = require('Base/Common')
|
|
require('Actor/ActorCommon')
|
|
console = nil
|
|
testGod = nil
|
|
|
|
console = require('Console')
|
|
if NG_HSOD_DEBUG then
|
|
testGod = require('Actor/TestActorProxy')
|
|
end
|
|
|
|
main = {}
|
|
main.ModuleDic = {}
|
|
|
|
main.OnStart = function()
|
|
print("On Main Started!")
|
|
|
|
if NG_HSOD_DEBUG then
|
|
testGod:Init()
|
|
end
|
|
end
|
|
|
|
main.OnLevelLoad = function(self, sceneID)
|
|
currSceneData = sceneData:LoadScene(sceneID)
|
|
|
|
if NG_HSOD_DEBUG then
|
|
testGod:OnSceneLoaded()
|
|
end
|
|
end
|
|
|
|
main.OnRequire = function(self, moduleName)
|
|
--print(moduleName)
|
|
--actorMgr:CreateActor("test", moduleName)
|
|
end
|
|
|
|
main.OnClearLevel = function()
|
|
actorMgr:DestroySoft()
|
|
end |