示例#1
0
        static int _g_get_ConfigType(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.ACategory gen_to_be_invoked = (DCET.Model.ACategory)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ConfigType);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#2
0
        static int _m_GetAll(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    DCET.Model.IConfig[] gen_ret = gen_to_be_invoked.GetAll(  );
                    translator.Push(L, gen_ret);



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


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



                {
                    int _type = LuaAPI.xlua_tointeger(L, 2);

                    DCET.Model.IConfig gen_ret = gen_to_be_invoked.TryGet(_type);
                    translator.PushAny(L, gen_ret);



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


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



                {
                    System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    DCET.Model.ACategory gen_ret = gen_to_be_invoked.GetCategory(_type);
                    translator.Push(L, gen_ret);



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