public RhythmConfig GetData(System.String name) { RhythmConfig ret = null; for (int i = 0; i < dataList.Count; ++i) { // if (dataList [i].name.Equals (name)) { // ret = dataList [i]; // break; // } } return(ret); }
public void Load() { dataList.Clear(); RhythmConfig item = null; while (!FileReader.IsEnd()) { FileReader.ReadLine(); item = new RhythmConfig(); item.ID = FileReader.ReadInt(); item.Shoot = FileReader.ReadString(); item.Time = FileReader.ReadFloat(); item.Event = FileReader.ReadInt(); item.Operation = FileReader.ReadInt(); item.Touch = FileReader.ReadFloat(); item.PerfectTouch = FileReader.ReadFloat(); item.ValidTouch = FileReader.ReadFloat(); dataList.Add(item); } }