private void Load() { if (!this.LoadingTrigger) { if (this.LoadTriggerBuffer.Count <= 0) { return; } EventTriggerMapManager.LoadingTriggerInfo loadingTriggerInfo = this.LoadTriggerBuffer[0]; if (loadingTriggerInfo == null) { return; } MapTriggerInfo mapInfo = loadingTriggerInfo.m_MapInfo; this.m_CurrentMapIdx = loadingTriggerInfo.m_MapIdx; this.AddActive(mapInfo); if (!mapInfo.Loaded && NrTSingleton <NrEventTriggerInfoManager> .Instance.IsVaildMapInfo(this.m_CurrentMapIdx)) { string path = string.Format("EventTrigger_MAP_{0}", this.m_CurrentMapIdx.ToString()); EventTriggerStageLoader.SetLoadingInfo(path, new EventTriggerStageLoader.LoadComplete(this.LoadTrigger)); this.LoadingSection = loadingTriggerInfo; this.LoadingTrigger = true; } else { this.LoadNext(loadingTriggerInfo); } } }
public void LoadMapTrigger(int MapIdx) { if (this.m_TestMode) { return; } if (this.m_MapTriggerList.Count <= 0) { this.MakeMapInfo(); this.LoadMapTrigger(-1); } if (this.m_CurrentMapIdx == MapIdx) { return; } if (this.m_CurrentMapIdx != -1) { MapTriggerInfo mapTriggerInfo = this.GetMapTriggerInfo(this.m_CurrentMapIdx); if (mapTriggerInfo != null) { mapTriggerInfo.SetActive(false); this.RemoveActive(mapTriggerInfo); } } MapTriggerInfo mapTriggerInfo2 = this.GetMapTriggerInfo(MapIdx); if (mapTriggerInfo2 == null) { return; } EventTriggerMapManager.LoadingTriggerInfo item = new EventTriggerMapManager.LoadingTriggerInfo(mapTriggerInfo2, MapIdx); this.LoadTriggerBuffer.Add(item); this.Load(); }
private void LoadNext(EventTriggerMapManager.LoadingTriggerInfo Info) { this.ActiveEventTriggerLinkToCurrentQuest(); this.LoadTriggerBuffer.Remove(Info); if (this.LoadTriggerBuffer.Count > 0) { this.Load(); } }