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

            try {
                xc.ui.UINewLockCDSlot __cl_gen_to_be_invoked = (xc.ui.UINewLockCDSlot)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);
        }
Esempio n. 2
0
        static int _s_set_mFunc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                xc.ui.UINewLockCDSlot __cl_gen_to_be_invoked = (xc.ui.UINewLockCDSlot)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);
        }
Esempio n. 4
0
        static int _s_set_State(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.ui.UINewLockCDSlot __cl_gen_to_be_invoked = (xc.ui.UINewLockCDSlot)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);
        }
Esempio n. 5
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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


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


            try {
                {
                    __cl_gen_to_be_invoked.OnDestroy(  );



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



            try {
                {
                    UnityEngine.GameObject obj = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));

                    xc.ui.UINewLockCDSlot __cl_gen_ret = xc.ui.UINewLockCDSlot.Bind(obj);
                    translator.Push(L, __cl_gen_ret);



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


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

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

                    __cl_gen_to_be_invoked.SetClickCallback(func, param);



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

                    __cl_gen_to_be_invoked.SetClickCallback(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.UINewLockCDSlot.SetClickCallback!"));
        }
Esempio n. 9
0
        static int _m_RestTime(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UINewLockCDSlot __cl_gen_to_be_invoked = (xc.ui.UINewLockCDSlot)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));
            }
        }