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

            try {
                Actor.SkillCastInfo __cl_gen_to_be_invoked = (Actor.SkillCastInfo)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.mbtCastRate);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Ejemplo n.º 2
0
        static int _s_set_muiID(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                Actor.SkillCastInfo __cl_gen_to_be_invoked = (Actor.SkillCastInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.muiID = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Ejemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    uint   uiID       = LuaAPI.xlua_touint(L, 2);
                    ushort btCastRate = (ushort)LuaAPI.xlua_tointeger(L, 3);

                    Actor.SkillCastInfo __cl_gen_ret = new Actor.SkillCastInfo(uiID, btCastRate);
                    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 Actor.SkillCastInfo constructor!"));
        }