static int Lua_ToString(IntPtr L) { GamePublic obj = LuaScriptMgr.GetNetObject <GamePublic>(L, 1); LuaScriptMgr.Push(L, obj.ToString()); return(1); }
static int ToString(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); GamePublic obj = LuaScriptMgr.GetNetObject <GamePublic>(L, 1); string o = obj.ToString(); LuaScriptMgr.Push(L, o); return(1); }