Exemple #1
0
        static int _s_set_RpcId(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.C2G_EnterMap gen_to_be_invoked = (DCET.Model.C2G_EnterMap)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.RpcId = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.C2G_EnterMap gen_ret = new DCET.Model.C2G_EnterMap();
                    translator.Push(L, 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 DCET.Model.C2G_EnterMap constructor!"));
        }
Exemple #3
0
        static int _m_CalculateSize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.C2G_EnterMap gen_to_be_invoked = (DCET.Model.C2G_EnterMap)translator.FastGetCSObj(L, 1);



                {
                    int gen_ret = gen_to_be_invoked.CalculateSize(  );
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemple #4
0
        static int _m_WriteTo(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.C2G_EnterMap gen_to_be_invoked = (DCET.Model.C2G_EnterMap)translator.FastGetCSObj(L, 1);



                {
                    Google.Protobuf.CodedOutputStream _output = (Google.Protobuf.CodedOutputStream)translator.GetObject(L, 2, typeof(Google.Protobuf.CodedOutputStream));

                    gen_to_be_invoked.WriteTo(_output);



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