Exemple #1
0
        static int _s_set_mSkillID(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.RockCommandSystem.Command __cl_gen_to_be_invoked = (xc.RockCommandSystem.Command)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mSkillID = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #2
0
        static int _g_get_CommandKey(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.RockCommandSystem.Command __cl_gen_to_be_invoked = (xc.RockCommandSystem.Command)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.CommandKey);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemple #3
0
        static int _s_set_CommandKey(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.RockCommandSystem.Command __cl_gen_to_be_invoked = (xc.RockCommandSystem.Command)translator.FastGetCSObj(L, 1);
                xc.DBCommandList.OPFlag      __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.CommandKey = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.RockCommandSystem.Command __cl_gen_ret = new xc.RockCommandSystem.Command();
                    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.RockCommandSystem.Command constructor!"));
        }