コード例 #1
0
 public static byte[] OpenArtFile(string file, Compression.CompressionType comp)
 {
     return LevelData.ReadFile(file, comp);
 }
コード例 #2
0
 internal static byte[] ReadFile(string file, Compression.CompressionType cmp)
 {
     if (filecache.ContainsKey(file))
         return filecache[file];
     else
     {
         byte[] val = Compression.Decompress(file, cmp);
         filecache.Add(file, val);
         return val;
     }
 }