Exemple #1
0
 public CacheMetadataAttribute(CacheGeneration generation, CachePlatform platform, CacheResourceCodec codec, CacheMetadataFlags flags)
 {
     Generation    = generation;
     Platform      = platform;
     ResourceCodec = codec;
     Flags         = flags;
 }
Exemple #2
0
 private CacheMetadata(CacheType cacheType, CacheMetadataAttribute meta, BuildStringAttribute build)
 {
     CacheType     = cacheType;
     Generation    = meta.Generation;
     Platform      = meta.Platform;
     Architecture  = Platform == CachePlatform.Xbox360 ? PlatformArchitecture.PowerPC : PlatformArchitecture.x86;
     StringIds     = build.StringIds;
     ResourceCodec = build.ResourceCodecOverride ?? meta.ResourceCodec;
     Flags         = build.FlagsOverride ?? meta.Flags;
 }
Exemple #3
0
 public BuildStringAttribute(string buildString, string stringIds, CacheMetadataFlags flags)
     : this(buildString, stringIds, null, flags)
 {
 }
Exemple #4
0
 public CacheMetadataAttribute(CacheGeneration generation, CachePlatform platform, CacheMetadataFlags flags)
     : this(generation, platform, generation < CacheGeneration.Gen3 ? Uncompressed : Deflate, flags)
 {
 }