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



            try {
                {
                    xc.DBInstance.InstanceInfo instanceInfo = (xc.DBInstance.InstanceInfo)translator.GetObject(L, 1, typeof(xc.DBInstance.InstanceInfo));

                    bool __cl_gen_ret = InstanceHelper.CheckInstanceEnterAttrs(instanceInfo);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


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


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

                    xc.DBInstance.InstanceInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetInstanceInfo(id);
                    translator.Push(L, __cl_gen_ret);



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