public virtual void Open( int _iAreaIdx ) { m_iAreaIdx = _iAreaIdx; m_AreaMapRecord = AsTableManager.Instance.GetAreaMapRecord( m_iAreaIdx ); if( null == m_AreaMapRecord ) { AsUtil.ShutDown("AreaLogic::Open()[ null == Tbl_AreaMap_Record ] area index : " + m_iAreaIdx ); return; } m_iFocusMapIdx = TerrainMgr.Instance.GetCurMapID(); m_WorldMapDlg.CreateAreaMap( m_AreaMapRecord.getStrImgPath, m_iFocusMapIdx ); m_WorldMapDlg.SetShowUpBtn(true); m_WorldMapDlg.SetTitleName( AsTableManager.Instance.GetTbl_String( m_AreaMapRecord.getTitleStrIdx) ); m_fTime = 0f; if( true == AsPartyManager.Instance.IsPartying ) { AsPartySender.SendPartyUserPosition(); } else { SetNoPartyImg(); } ResetPartyNameList(); CheckArrayState(); }
public override void LoadTable(string _path) { XmlElement root = GetXmlRootElement(_path); XmlNodeList nodes = root.ChildNodes; foreach(XmlNode node in nodes) { Tbl_AreaMap_Record record = new Tbl_AreaMap_Record((XmlElement)node); if( true == m_RecordList.ContainsKey( record.Index ) ) { Debug.LogError("Tbl_AreaMapTable::LoadTable()[true == m_RecordList.ContainsKey] index : " + record.Index ); return; } m_RecordList.Add( record.Index, record ); } }