static int encrypt(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); NetworkConn obj = (NetworkConn)LuaScriptMgr.GetNetObjectSelf(L, 1, "NetworkConn"); Pack arg0 = (Pack)LuaScriptMgr.GetNetObject(L, 2, typeof(Pack)); obj.encrypt(arg0); return(0); }