LuaSvr: private->protected so we can extend custom LuaSvr for Sync Load
@@ -46,7 +46,7 @@ namespace SLua
{
public LuaState luaState;
#if !SLUA_STANDALONE
- static LuaSvrGameObject lgo;
+ protected static LuaSvrGameObject lgo;
#endif
int errorReported = 0;
public bool inited = false;
@@ -116,7 +116,7 @@ namespace SLua
}
- private void doBind(IntPtr L)
+ protected void doBind(IntPtr L)
{
var list = collectBindInfo ();
@@ -167,7 +167,7 @@ namespace SLua
return new Action<IntPtr>[0];
}
- void doinit(IntPtr L,LuaSvrFlag flag)
+ protected void doinit(IntPtr L,LuaSvrFlag flag)
{
#if !SLUA_STANDALONE
LuaTimer.reg(L);
@@ -201,7 +201,7 @@ namespace SLua
inited = true;
}
- void checkTop(IntPtr L)
+ protected void checkTop(IntPtr L)
{
if (LuaDLL.lua_gettop(luaState.L) != errorReported)
{
