Пример #1
0
        /// <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);
                }
            }
        }
Пример #2
0
 /// <summary>
 /// Initialize this instance.
 /// </summary>
 public override void Initialize()
 {
     GlobalData.Add("FPS", 0);
 }