/// <summary> /// 读取数据 /// </summary> /// <param name="typeList"></param> private static void ReadData(params Type[] typeList) { foreach (var type in typeList) { if (!DataFilePath.ContainsKey(type)) { DataFilePath.Add(type, StaticDao.GetDataFilePath(type, DataDirPath)); } if (!GlobalData.ContainsKey(type)) { var data = StaticDao.ReadGlobalData(type, DataFilePath[type]); GlobalData.Add(type, data); } } }
/// <summary> /// Initialize this instance. /// </summary> public override void Initialize() { GlobalData.Add("FPS", 0); }