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

            try {
                xc.MoveCtrl __cl_gen_to_be_invoked = (xc.MoveCtrl)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.OnMoveEnd = translator.GetDelegate <xc.MoveCtrl.MoveDirCallback>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #2
0
        static int _g_get_OnMoveEnd(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                xc.MoveCtrl __cl_gen_to_be_invoked = (xc.MoveCtrl)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.IsMoving = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Actor>(L, 2))
                {
                    Actor owner = (Actor)translator.GetObject(L, 2, typeof(Actor));

                    xc.MoveCtrl __cl_gen_ret = new xc.MoveCtrl(owner);
                    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.MoveCtrl constructor!"));
        }
Beispiel #5
0
        static int _m_Destroy(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Destroy(  );



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


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


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



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


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <System.Action>(L, 3))
                {
                    UnityEngine.Vector3 pos; translator.Get(L, 2, out pos);
                    System.Action       reachCallback = translator.GetDelegate <System.Action>(L, 3);

                    int __cl_gen_ret = __cl_gen_to_be_invoked.TryWalkToAlong(pos, reachCallback);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2))
                {
                    UnityEngine.Vector3 pos; translator.Get(L, 2, out pos);

                    int __cl_gen_ret = __cl_gen_to_be_invoked.TryWalkToAlong(pos);
                    LuaAPI.xlua_pushinteger(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.MoveCtrl.TryWalkToAlong!"));
        }
Beispiel #8
0
        static int _m_TryWalkAlong(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2))
                {
                    UnityEngine.Vector3 dir; translator.Get(L, 2, out dir);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TryWalkAlong(dir);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.Vector3 dir; translator.Get(L, 2, out dir);
                    bool force_sendmsg = LuaAPI.lua_toboolean(L, 3);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TryWalkAlong(dir, force_sendmsg);
                    LuaAPI.lua_pushboolean(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.MoveCtrl.TryWalkAlong!"));
        }
Beispiel #9
0
        static int _m_ReceiveSetPos(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    Net.S2CNwarSetPos pack = (Net.S2CNwarSetPos)translator.GetObject(L, 2, typeof(Net.S2CNwarSetPos));

                    __cl_gen_to_be_invoked.ReceiveSetPos(pack);



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


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


            try {
                {
                    UnityEngine.Vector3 dir; translator.Get(L, 2, out dir);

                    __cl_gen_to_be_invoked.MoveDirInAttacking(dir);



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