static int _m_OnNetConnect(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Net.NetClient.IListener __cl_gen_to_be_invoked = (Net.NetClient.IListener)translator.FastGetCSObj(L, 1);


            try {
                {
                    Net.NetType netType; translator.Get(L, 2, out netType);

                    __cl_gen_to_be_invoked.OnNetConnect(netType);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_OnNetDataReply(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Net.NetClient.IListener __cl_gen_to_be_invoked = (Net.NetClient.IListener)translator.FastGetCSObj(L, 1);


            try {
                {
                    Net.NetType netType; translator.Get(L, 2, out netType);
                    ushort      protocol = (ushort)LuaAPI.xlua_tointeger(L, 3);
                    byte[]      data     = LuaAPI.lua_tobytes(L, 4);

                    __cl_gen_to_be_invoked.OnNetDataReply(netType, protocol, data);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }