예제 #1
0
파일: Cache.cs 프로젝트: MisterDr/FOCommon
        private static MapHeaderCache ReadMapHeaderFile(string MapPath)
        {
            FOMapParser parser = new FOMapParser(MapPath);
            parser.Parse(true);

            MapHeaderCache hdc = new MapHeaderCache();
            hdc.Data = parser.Map.Header;
            hdc.LastWriteTime = File.GetLastWriteTime(MapPath);
            _mapHeaders[MapPath] = hdc;
            return hdc;
        }
예제 #2
0
파일: Cache.cs 프로젝트: rotators/FOCommon
        private static MapHeaderCache ReadMapHeaderFile(string MapPath)
        {
            FOMapParser parser = new FOMapParser(MapPath);

            parser.Parse(true);

            MapHeaderCache hdc = new MapHeaderCache();

            hdc.Data             = parser.Map.Header;
            hdc.LastWriteTime    = File.GetLastWriteTime(MapPath);
            _mapHeaders[MapPath] = hdc;
            return(hdc);
        }
예제 #3
0
파일: Cache.cs 프로젝트: MisterDr/FOCommon
 public static void Load(string fileName)
 {
     if (!File.Exists(fileName))
         return;
     foreach (String line in File.ReadAllLines(fileName))
     {
         string[] param = line.Split('|');
         int type = Int32.Parse(param[0]);
         if (type == (int)CacheType.MapHeader)
         {
             _mapHeaders[param[1]] = new MapHeaderCache(DateTime.Parse(param[2]), param[3], param[4], param[5], param[6] == "1");
         }
     }
 }
예제 #4
0
파일: Cache.cs 프로젝트: rotators/FOCommon
 public static void Load(string fileName)
 {
     if (!File.Exists(fileName))
     {
         return;
     }
     foreach (String line in File.ReadAllLines(fileName))
     {
         string[] param = line.Split('|');
         int      type  = Int32.Parse(param[0]);
         if (type == (int)CacheType.MapHeader)
         {
             _mapHeaders[param[1]] = new MapHeaderCache(DateTime.Parse(param[2]), param[3], param[4], param[5], param[6] == "1");
         }
     }
 }