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

            try {
                xc.ui.UILockCDSlot __cl_gen_to_be_invoked = (xc.ui.UILockCDSlot)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mParam = translator.GetObject(L, 2, typeof(object));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 2
0
        static int _s_set_mFunc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.ui.UILockCDSlot __cl_gen_to_be_invoked = (xc.ui.UILockCDSlot)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mFunc = translator.GetDelegate <xc.ui.UILockCDSlot.OnClickFunc>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _g_get_mFunc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.ui.UILockCDSlot __cl_gen_to_be_invoked = (xc.ui.UILockCDSlot)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.mFunc);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 4
0
        static int _s_set_State(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.ui.UILockCDSlot __cl_gen_to_be_invoked = (xc.ui.UILockCDSlot)translator.FastGetCSObj(L, 1);
                xc.ui.LockState    __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.State = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 5
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.ui.UILockCDSlot __cl_gen_ret = new xc.ui.UILockCDSlot();
                    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.ui.UILockCDSlot constructor!"));
        }
Exemplo n.º 6
0
        static int _m_Clear(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Clear(  );



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


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <xc.ui.UILockCDSlot.OnClickFunc>(L, 2) && translator.Assignable <object>(L, 3))
                {
                    xc.ui.UILockCDSlot.OnClickFunc func = translator.GetDelegate <xc.ui.UILockCDSlot.OnClickFunc>(L, 2);
                    object param = translator.GetObject(L, 3, typeof(object));

                    __cl_gen_to_be_invoked.Init(func, param);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <xc.ui.UILockCDSlot.OnClickFunc>(L, 2))
                {
                    xc.ui.UILockCDSlot.OnClickFunc func = translator.GetDelegate <xc.ui.UILockCDSlot.OnClickFunc>(L, 2);

                    __cl_gen_to_be_invoked.Init(func);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.UILockCDSlot.Init!"));
        }
Exemplo n.º 8
0
        static int _m_RestTime(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint start_cd = LuaAPI.xlua_touint(L, 2);
                    uint cd       = LuaAPI.xlua_touint(L, 3);

                    __cl_gen_to_be_invoked.RestTime(start_cd, cd);



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