Exemplo 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));
            }
        }
Exemplo n.º 2
0
        static int _m_CreateBuff(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string buffId  = LuaAPI.lua_tostring(L, 2);
                    string skillId = LuaAPI.lua_tostring(L, 3);
                    int    lvl     = LuaAPI.xlua_tointeger(L, 4);
                    Logic.Controller.Bio caster = (Logic.Controller.Bio)translator.GetObject(L, 5, typeof(Logic.Controller.Bio));
                    Logic.Controller.Bio target = (Logic.Controller.Bio)translator.GetObject(L, 6, typeof(Logic.Controller.Bio));
                    Core.Math.Vec3       targetPoint; translator.Get(L, 7, out targetPoint);

                    Logic.Controller.Buff __cl_gen_ret = __cl_gen_to_be_invoked.CreateBuff(buffId, skillId, lvl, caster, target, targetPoint);
                    translator.Push(L, __cl_gen_ret);



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


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



                {
                    string         id = LuaAPI.lua_tostring(L, 2);
                    Core.Math.Vec3 position; translator.Get(L, 3, out position);
                    Core.Math.Vec3 direction; translator.Get(L, 4, out direction);
                    int            team = LuaAPI.xlua_tointeger(L, 5);

                    Logic.Controller.Bio __cl_gen_ret = __cl_gen_to_be_invoked.CreateBio(id, position, direction, team);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 4
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));
            }
        }
Exemplo n.º 5
0
        static int _g_get_sensorySystem(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Logic.Controller.Bio __cl_gen_to_be_invoked = (Logic.Controller.Bio)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.sensorySystem);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 6
0
        static int _g_get_upgradeSkillPointObtained(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Logic.Controller.Bio __cl_gen_to_be_invoked = (Logic.Controller.Bio)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.upgradeSkillPointObtained);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 7
0
        static int _m_ChangeState(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count >= 3 && translator.Assignable <Logic.FSM.FSMStateType>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable <object>(L, 4)))
                {
                    Logic.FSM.FSMStateType type; translator.Get(L, 2, out type);
                    bool     force = LuaAPI.lua_toboolean(L, 3);
                    object[] param = translator.GetParams <object>(L, 4);

                    __cl_gen_to_be_invoked.ChangeState(type, force, param);



                    return(0);
                }
                if (__gen_param_count >= 2 && translator.Assignable <Logic.FSM.FSMStateType>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    Logic.FSM.FSMStateType type; translator.Get(L, 2, out type);
                    bool force = LuaAPI.lua_toboolean(L, 3);

                    __cl_gen_to_be_invoked.ChangeState(type, force);



                    return(0);
                }
                if (__gen_param_count >= 1 && translator.Assignable <Logic.FSM.FSMStateType>(L, 2))
                {
                    Logic.FSM.FSMStateType type; translator.Get(L, 2, out type);

                    __cl_gen_to_be_invoked.ChangeState(type);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Logic.Controller.Bio.ChangeState!"));
        }
Exemplo n.º 8
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Logic.Controller.Bio __cl_gen_ret = new Logic.Controller.Bio();
                    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 Logic.Controller.Bio constructor!"));
        }
Exemplo n.º 9
0
        static int _m_Relive(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    __cl_gen_to_be_invoked.Relive(  );



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


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



                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.CanCharmed(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 11
0
        static int _m_Track(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.Bio target = (Logic.Controller.Bio)translator.GetObject(L, 2, typeof(Logic.Controller.Bio));

                    __cl_gen_to_be_invoked.Track(target);



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


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



                {
                    Core.Math.Vec3 targetPoint; translator.Get(L, 2, out targetPoint);

                    __cl_gen_to_be_invoked.Move(targetPoint);



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


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



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

                    Logic.Controller.Bio __cl_gen_ret = __cl_gen_to_be_invoked.GetBio(rid);
                    translator.Push(L, __cl_gen_ret);



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