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


                Logic.Controller.Bio __cl_gen_to_be_invoked = (Logic.Controller.Bio)translator.FastGetCSObj(L, 1);



                {
                    Logic.Controller.Skill skill  = (Logic.Controller.Skill)translator.GetObject(L, 2, typeof(Logic.Controller.Skill));
                    Logic.Controller.Bio   target = (Logic.Controller.Bio)translator.GetObject(L, 3, typeof(Logic.Controller.Bio));
                    Core.Math.Vec3         targetPoint; translator.Get(L, 4, out targetPoint);

                    __cl_gen_to_be_invoked.Attack(skill, target, targetPoint);



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


                Logic.Controller.Bio __cl_gen_to_be_invoked = (Logic.Controller.Bio)translator.FastGetCSObj(L, 1);



                {
                    Logic.Controller.Entity target = (Logic.Controller.Entity)translator.GetObject(L, 2, typeof(Logic.Controller.Entity));
                    Logic.Controller.Skill  skill  = (Logic.Controller.Skill)translator.GetObject(L, 3, typeof(Logic.Controller.Skill));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.WithinSkillRange(target, skill);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


                Logic.Controller.Bio __cl_gen_to_be_invoked = (Logic.Controller.Bio)translator.FastGetCSObj(L, 1);



                {
                    string id = LuaAPI.lua_tostring(L, 2);

                    Logic.Controller.Skill __cl_gen_ret = __cl_gen_to_be_invoked.GetSkill(id);
                    translator.Push(L, __cl_gen_ret);



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