コード例 #1
0
        static int _g_get_AllNpc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.NpcManager __cl_gen_to_be_invoked = (xc.NpcManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.AllNpc);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
コード例 #2
0
        static int _s_set_TravelBootsJumpNpcId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.NpcManager __cl_gen_to_be_invoked = (xc.NpcManager)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.TravelBootsJumpNpcId = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.NpcManager __cl_gen_ret = new xc.NpcManager();
                    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.NpcManager constructor!"));
        }
コード例 #4
0
        static int _m_CreateAllNpcs(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.CreateAllNpcs(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #5
0
        static int _m_GetInstance_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    xc.NpcManager __cl_gen_ret = xc.Singleton <xc.NpcManager> .GetInstance(  );

                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    NpcPlayer npc = (NpcPlayer)translator.GetObject(L, 2, typeof(NpcPlayer));

                    __cl_gen_to_be_invoked.AddNpc(npc);



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


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


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

                    __cl_gen_to_be_invoked.RemoveNpcInDoNotGuideList(npcId);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #8
0
        static int _m_GetClosestNpc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    Neptune.Relationship npcType; translator.Get(L, 2, out npcType);

                    NpcPlayer __cl_gen_ret = __cl_gen_to_be_invoked.GetClosestNpc(npcType);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #9
0
        static int _m_GetNpcByNpcExcelId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint npcExcelId = LuaAPI.xlua_touint(L, 2);

                    NpcPlayer __cl_gen_ret = __cl_gen_to_be_invoked.GetNpcByNpcExcelId(npcExcelId);
                    translator.Push(L, __cl_gen_ret);



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


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


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

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.NpcCanGuide(npcId);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #11
0
        static int _m_CreateNPC(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Actor>(L, 3))
                {
                    int   npcId  = LuaAPI.xlua_tointeger(L, 2);
                    Actor parent = (Actor)translator.GetObject(L, 3, typeof(Actor));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcId, parent);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int npcId = LuaAPI.xlua_tointeger(L, 2);

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcId);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <Neptune.NPC>(L, 2) && translator.Assignable <Actor>(L, 3))
                {
                    Neptune.NPC npcInfo = (Neptune.NPC)translator.GetObject(L, 2, typeof(Neptune.NPC));
                    Actor       parent  = (Actor)translator.GetObject(L, 3, typeof(Actor));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcInfo, parent);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <Neptune.NPC>(L, 2))
                {
                    Neptune.NPC npcInfo = (Neptune.NPC)translator.GetObject(L, 2, typeof(Neptune.NPC));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcInfo);
                    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.NpcManager.CreateNPC!"));
        }