| | |
| | | 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) |
| | |
| | | } |
| | | } |
| | | |
| | | 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)) |
| | |
| | | } |
| | | } |
| | | |
| | | public void NpcDead(int eventID, GActorNpcFight npc) |
| | | public void NpcDead(int eventID, GActor npc, int npcID) |
| | | { |
| | | if (eventID < 0 || npc == null) |
| | | { |
| | |
| | | var _eventHandler = GetEventHandler(eventID) as EventRefreshNPCHandler; |
| | | if (_eventHandler != null) |
| | | { |
| | | _eventHandler.NpcDead(npc.NpcConfig.NPCID); |
| | | _eventHandler.NpcDead(npcID); |
| | | } |
| | | |
| | | if (m_EventActorDict.ContainsKey(eventID)) |
| | |
| | | return _targetPos; |
| | | } |
| | | |
| | | public void TriggerTest(int triggerID) |
| | | { |
| | | SnxxzGame.Instance.StartCoroutine(DelayTrigger(99999999, triggerID)); |
| | | } |
| | | |
| | | private IEnumerator DelayTrigger(uint missionID, int triggerID) |
| | | { |
| | | // ID为0, 约定为清空触发 |