少年修仙传客户端代码仓库
client_linchunjie
2019-03-26 291ccee6cdf1812f8b3b1f7b0e52c1ebd70cfe4c
Fight/Stage/MapEditor/Game/ClientSceneManager.cs
@@ -12,7 +12,7 @@
    private Dictionary<int, uint> m_TriggerIDToMissionIDDict = new Dictionary<int, uint>();
    private Dictionary<int, TriggerHandler> m_TriggerHandlerDict = new Dictionary<int, TriggerHandler>();
    private List<int> m_ReadyRemoveTriggerList = new List<int>();
    private Dictionary<int, List<GActorNpcFight>> m_EventActorDict = new Dictionary<int, List<GActorNpcFight>>();
    private Dictionary<int, List<GActor>> m_EventActorDict = new Dictionary<int, List<GActor>>();
    public bool IsClientFightMode { get; private set; }
    private IEnumerator DelayUnTrigger(int id)
@@ -66,11 +66,11 @@
        }
    }
    public void NpcBorn(int eventID, GActorNpcFight npc)
    public void NpcBorn(int eventID, GActor npc)
    {
        if (!m_EventActorDict.ContainsKey(eventID))
        {
            m_EventActorDict.Add(eventID, new List<GActorNpcFight>());
            m_EventActorDict.Add(eventID, new List<GActor>());
        }
        if (!m_EventActorDict[eventID].Contains(npc))
@@ -80,7 +80,7 @@
        }
    }
    public void NpcDead(int eventID, GActorNpcFight npc)
    public void NpcDead(int eventID, GActor npc, int npcID)
    {
        if (eventID < 0 || npc == null)
        {
@@ -90,7 +90,7 @@
        var _eventHandler = GetEventHandler(eventID) as EventRefreshNPCHandler;
        if (_eventHandler != null)
        {
            _eventHandler.NpcDead(npc.NpcConfig.NPCID);
            _eventHandler.NpcDead(npcID);
        }
        if (m_EventActorDict.ContainsKey(eventID))
@@ -506,6 +506,11 @@
        return _targetPos;
    }
    public void TriggerTest(int triggerID)
    {
        SnxxzGame.Instance.StartCoroutine(DelayTrigger(99999999, triggerID));
    }
    private IEnumerator DelayTrigger(uint missionID, int triggerID)
    {
        // ID为0, 约定为清空触发