static int GetString(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); string o = obj.GetString(arg0); LuaScriptMgr.Push(L, o); return(1); }