コード例 #1
0
        public static CacheFile Deserialize(BinaryReader reader)
        {
            var file = new CacheFile();

            file.version    = reader.ReadByte();
            file.oggEntries = reader.ReadList(OggCacheEntry.Deserialize);
            file.pngEntries = reader.ReadList(PngCacheEntry.Deserialize);
            file.rhsEntries = reader.ReadList(RhsCacheEntry.Deserialize);
            file.rhcEntries = reader.ReadList(RhcCacheEntry.Deserialize);
            file.rhgEntries = reader.ReadList(RhgCacheEntry.Deserialize);

            return(file);
        }
コード例 #2
0
 public OggSynchronizer(CacheFile cacheFile, RhGuid oggGuid, float length) : base(cacheFile)
 {
     this.oggGuid = oggGuid;
     this.length  = length;
 }
コード例 #3
0
 public CacheSynchronizer(CacheFile cacheFile)
 {
     this.cacheFile = cacheFile;
 }
コード例 #4
0
 public RhgSynchronizer(CacheFile cacheFile, RhgFile rhgFile) : base(cacheFile)
 {
     this.rhgFile = rhgFile;
 }
コード例 #5
0
 public PngSynchronizer(CacheFile cacheFile, RhGuid pngGuid) : base(cacheFile)
 {
     this.pngGuid = pngGuid;
 }