Esempio n. 1
0
        static int _g_get_State(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.Task __cl_gen_to_be_invoked = (xc.Task)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.State);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 2
0
        static int _g_get_CurrentStepProgress(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <xc.Task>(L, 4) && translator.Assignable <System.Action>(L, 5))
                {
                    uint          mapId            = LuaAPI.xlua_touint(L, 2);
                    uint          tagId            = LuaAPI.xlua_touint(L, 3);
                    xc.Task       relateTask       = (xc.Task)translator.GetObject(L, 4, typeof(xc.Task));
                    System.Action finishedCallback = translator.GetDelegate <System.Action>(L, 5);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.GoToTagPos(mapId, tagId, relateTask, finishedCallback);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <xc.Task>(L, 4))
                {
                    uint    mapId      = LuaAPI.xlua_touint(L, 2);
                    uint    tagId      = LuaAPI.xlua_touint(L, 3);
                    xc.Task relateTask = (xc.Task)translator.GetObject(L, 4, typeof(xc.Task));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.GoToTagPos(mapId, tagId, relateTask);
                    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.TargetPathManager.GoToTagPos!"));
        }
Esempio n. 4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

                    xc.Task __cl_gen_ret = new xc.Task(task);
                    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.Task constructor!"));
        }
Esempio n. 5
0
        static int _m_GotoTaskByLua_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    xc.Task task = (xc.Task)translator.GetObject(L, 1, typeof(xc.Task));

                    xc.TaskHelper.GotoTaskByLua(task);



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


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


            try {
                {
                    __cl_gen_to_be_invoked.Update(  );



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


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


            try {
                {
                    string __cl_gen_ret = __cl_gen_to_be_invoked.ToString(  );
                    LuaAPI.lua_pushstring(L, __cl_gen_ret);



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


            System.Collections.Generic.List <xc.Task> __cl_gen_to_be_invoked = (System.Collections.Generic.List <xc.Task>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.Task item = (xc.Task)translator.GetObject(L, 2, typeof(xc.Task));

                    __cl_gen_to_be_invoked.Add(item);



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



            try {
                {
                    xc.Task task = (xc.Task)translator.GetObject(L, 1, typeof(xc.Task));
                    bool    needRecoverAutoFight = LuaAPI.lua_toboolean(L, 2);

                    System.Collections.IEnumerator __cl_gen_ret = xc.TaskHelper.TaskGuideCoroutine(task, needRecoverAutoFight);
                    translator.Push(L, __cl_gen_ret);



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


            xc.TargetPathManager __cl_gen_to_be_invoked = (xc.TargetPathManager)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 <xc.Task>(L, 3))
                {
                    UnityEngine.Vector3 targetPos; translator.Get(L, 2, out targetPos);
                    xc.Task             relateTask = (xc.Task)translator.GetObject(L, 3, typeof(xc.Task));

                    __cl_gen_to_be_invoked.LocalPlayerWalkToDestination(targetPos, relateTask);



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

                    __cl_gen_to_be_invoked.LocalPlayerWalkToDestination(targetPos);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.TargetPathManager.LocalPlayerWalkToDestination!"));
        }
Esempio n. 11
0
        static int _m_FindLast(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.List <xc.Task> __cl_gen_to_be_invoked = (System.Collections.Generic.List <xc.Task>)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Predicate <xc.Task> match = translator.GetDelegate <System.Predicate <xc.Task> >(L, 2);

                    xc.Task __cl_gen_ret = __cl_gen_to_be_invoked.FindLast(match);
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    object targetObj = translator.GetObject(L, 2, typeof(object));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.CompareTo(targetObj);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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


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


            try {
                {
                    int stepIndex = LuaAPI.xlua_tointeger(L, 2);

                    string __cl_gen_ret = __cl_gen_to_be_invoked.GetStepFixedDescription(stepIndex);
                    LuaAPI.lua_pushstring(L, __cl_gen_ret);



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



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))
                {
                    uint taskId = LuaAPI.xlua_touint(L, 1);

                    bool __cl_gen_ret = xc.TaskHelper.TaskGuide(taskId);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 1 && translator.Assignable <xc.Task>(L, 1))
                {
                    xc.Task task = (xc.Task)translator.GetObject(L, 1, typeof(xc.Task));

                    bool __cl_gen_ret = xc.TaskHelper.TaskGuide(task);
                    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.TaskHelper.TaskGuide!"));
        }
Esempio n. 15
0
        static int _m_TriggerDialogBox(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && translator.Assignable <xc.DBDialog.DialogInfo>(L, 2))
                {
                    xc.DBDialog.DialogInfo dialogInfo = (xc.DBDialog.DialogInfo)translator.GetObject(L, 2, typeof(xc.DBDialog.DialogInfo));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TriggerDialogBox(dialogInfo);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 5 && translator.Assignable <xc.DBDialog.DialogInfo>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <Actor>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    xc.DBDialog.DialogInfo dialogInfo = (xc.DBDialog.DialogInfo)translator.GetObject(L, 2, typeof(xc.DBDialog.DialogInfo));
                    string customName  = LuaAPI.lua_tostring(L, 3);
                    Actor  otherPlayer = (Actor)translator.GetObject(L, 4, typeof(Actor));
                    uint   actorId     = LuaAPI.xlua_touint(L, 5);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TriggerDialogBox(dialogInfo, customName, otherPlayer, actorId);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && translator.Assignable <xc.DBDialog.DialogInfo>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <Actor>(L, 4))
                {
                    xc.DBDialog.DialogInfo dialogInfo = (xc.DBDialog.DialogInfo)translator.GetObject(L, 2, typeof(xc.DBDialog.DialogInfo));
                    string customName  = LuaAPI.lua_tostring(L, 3);
                    Actor  otherPlayer = (Actor)translator.GetObject(L, 4, typeof(Actor));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TriggerDialogBox(dialogInfo, customName, otherPlayer);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 8 && translator.Assignable <xc.DBDialog.DialogInfo>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <Actor>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <System.Action>(L, 6) && translator.Assignable <System.Action>(L, 7) && translator.Assignable <xc.Task>(L, 8))
                {
                    xc.DBDialog.DialogInfo dialogInfo = (xc.DBDialog.DialogInfo)translator.GetObject(L, 2, typeof(xc.DBDialog.DialogInfo));
                    string        customName          = LuaAPI.lua_tostring(L, 3);
                    Actor         otherPlayer         = (Actor)translator.GetObject(L, 4, typeof(Actor));
                    uint          actorId             = LuaAPI.xlua_touint(L, 5);
                    System.Action finishedCallback    = translator.GetDelegate <System.Action>(L, 6);
                    System.Action skipedCallback      = translator.GetDelegate <System.Action>(L, 7);
                    xc.Task       relatedTask         = (xc.Task)translator.GetObject(L, 8, typeof(xc.Task));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TriggerDialogBox(dialogInfo, customName, otherPlayer, actorId, finishedCallback, skipedCallback, relatedTask);
                    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.DialogManager.TriggerDialogBox!"));
        }