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


                XLua.ObjectCheckers gen_to_be_invoked = (XLua.ObjectCheckers)translator.FastGetCSObj(L, 1);



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

                    XLua.ObjectCheck gen_ret = gen_to_be_invoked.GetChecker(_type);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #2
0
        static int _m_genNullableChecker(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                XLua.ObjectCheckers gen_to_be_invoked = (XLua.ObjectCheckers)translator.FastGetCSObj(L, 1);



                {
                    XLua.ObjectCheck _oc = translator.GetDelegate <XLua.ObjectCheck>(L, 2);

                    XLua.ObjectCheck gen_ret = gen_to_be_invoked.genNullableChecker(_oc);
                    translator.Push(L, gen_ret);



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