Exemplo n.º 1
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Net.NetClient>(L, 2))
                {
                    Net.NetClient p = (Net.NetClient)translator.GetObject(L, 2, typeof(Net.NetClient));

                    Net.NetClient.MutiPacketHelp __cl_gen_ret = new Net.NetClient.MutiPacketHelp(p);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to Net.NetClient.MutiPacketHelp constructor!"));
        }
Exemplo n.º 2
0
        static int _m_Send(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Send(  );



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