| | |
| | | public static Dictionary<uint, uint> m_CBinSdDict = new Dictionary<uint, uint>(); |
| | | public static Dictionary<uint, uint> m_SBindCDict = new Dictionary<uint, uint>(); |
| | | |
| | | private static List<PersonalEnemy> m_UnUsed = new List<PersonalEnemy>(); |
| | | |
| | | private static Dictionary<uint, List<BindInfo>> BindInfoDict = new Dictionary<uint, List<BindInfo>>(); |
| | | |
| | | public static UnityEngine.Events.UnityAction<GA_NpcClientFightNorm> OnNpcAppear; |
| | | |
| | | public static void UnInit() |
| | | { |
| | | m_Map.Clear(); |
| | | m_CBinSdDict.Clear(); |
| | | m_SBindCDict.Clear(); |
| | | m_UnUsed.Clear(); |
| | | BindInfoDict.Clear(); |
| | | } |
| | | |
| | | public static uint GetPersionEnemySID(uint sid) |
| | |
| | | |
| | | var _bindInfo = BindInfoDict[h0408.NPCID][0]; |
| | | var _config = NPCConfig.Get((int)h0408.NPCID); |
| | | GActorNpcFight _npc = null; |
| | | GA_NpcClientFightNorm _npc = null; |
| | | if (_config.IsBoss != (int)E_MonsterType.Normal |
| | | && _config.IsBoss != (int)E_MonsterType.Elite) |
| | | { |
| | |
| | | _npc.BornPos = _npc.Pos = _vaildPos; |
| | | m_CBinSdDict[_npc.ServerInstID] = h0408.ObjID; |
| | | m_SBindCDict[h0408.ObjID] = _npc.ServerInstID; |
| | | if (OnNpcAppear != null) |
| | | { |
| | | OnNpcAppear(_npc); |
| | | } |
| | | } |
| | | |
| | | BindInfoDict[h0408.NPCID].RemoveAt(0); |