Пример #1
0
        static int _g_get_Type(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBGem.GemInfo __cl_gen_to_be_invoked = (xc.DBGem.GemInfo)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.Type);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Пример #2
0
        static int _s_set_TypeName(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBGem.GemInfo __cl_gen_to_be_invoked = (xc.DBGem.GemInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.TypeName = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #3
0
        static int _s_set_Attrs(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBGem.GemInfo __cl_gen_to_be_invoked = (xc.DBGem.GemInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Attrs = (System.Collections.Generic.List <System.Collections.Generic.List <uint> >)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <System.Collections.Generic.List <uint> >));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.DBGem.GemInfo __cl_gen_ret = new xc.DBGem.GemInfo();
                    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 xc.DBGem.GemInfo constructor!"));
        }
Пример #5
0
        static int _m_GetGemInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.DBGem __cl_gen_to_be_invoked = (xc.DBGem)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint id = LuaAPI.xlua_touint(L, 2);

                    xc.DBGem.GemInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetGemInfo(id);
                    translator.Push(L, __cl_gen_ret);



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