public Tbl_BuffMinMaxTable_Record GetRecord( Tbl_BuffMinMaxTable_Record.eBuffTYPE _bufftype ) { if(m_list.ContainsKey(_bufftype) == true) return m_list[_bufftype]; Debug.LogError("[Tbl_BuffMinMaxTable_Table]GetRecord: there is no record : " + _bufftype ); return null; }
public override void LoadTable(string _path) { XmlElement root = GetXmlRootElement(_path); XmlNodeList nodes = root.ChildNodes; foreach(XmlNode node in nodes) { Tbl_BuffMinMaxTable_Record record = new Tbl_BuffMinMaxTable_Record((XmlElement)node); if( true == m_list.ContainsKey( record.bufftype ) ) { Debug.LogError("Tbl_BuffMinMaxTable_Table::LoadTable()[ bufftype : " + record.bufftype ); continue; } m_list.Add( record.bufftype, record ); } }