| | |
| | | public Dictionary<int, Dictionary<string, int>> ReplaceDic = new Dictionary<int, Dictionary<string, int>>();//key值替换字典 |
| | | public Dictionary<int, RunTaskAwardRecord> AwardRecordDic = new Dictionary<int, RunTaskAwardRecord>();//跑环奖励记录 |
| | | public Dictionary<int, int> NPCShowDic = new Dictionary<int, int>();//关于NPC的显隐问题 |
| | | |
| | | Dictionary<int, int> m_ShowNpcCache = new Dictionary<int, int>(); |
| | | |
| | | public delegate void OnTaskToAdd(int MissionID, int MissionState, int DiscriptionIndex); |
| | | public static event OnTaskToAdd Event_TaskToAdd;//任务添加 |
| | | public delegate void OnTaskRefreshes(int _taskId); |
| | |
| | | ReplaceDic.Clear(); |
| | | AwardRecordDic.Clear(); |
| | | NPCShowDic.Clear(); |
| | | m_ShowNpcCache.Clear(); |
| | | _conversation = null; |
| | | _DefaultDialogContent = null; |
| | | _TaskNow = 0; |
| | |
| | | |
| | | private void StorageNPCDic(uint taskId, string key, int Value)//关于NPC的显隐 |
| | | { |
| | | if (key.Equals("Show_{visit_npc_id}"))
|
| | | {
|
| | | m_ShowNpcCache[(int)taskId] = Value;
|
| | | return;
|
| | | } |
| | | |
| | | if (key.Equals("visit_npc_id"))
|
| | | {
|
| | | if (m_ShowNpcCache.ContainsKey((int)taskId))
|
| | | {
|
| | | Task0820(new H0820_tagMissionDict()
|
| | | {
|
| | | MissionID = taskId,
|
| | | DictKey = "Show_" + Value,
|
| | | DictValue = (uint)m_ShowNpcCache[(int)taskId],
|
| | | });
|
| | | m_ShowNpcCache.Remove((int)taskId);
|
| | | }
|
| | | return;
|
| | | } |
| | | |
| | | string[] str = key.Split('_'); |
| | | if (str[0] == "Show") |
| | | { |