예제 #1
0
 public GameCacheModPackage(ModPackage modPackage, FileInfo file)
 {
     BaseModPackage = modPackage;
     Directory      = file.Directory;
     DisplayName    = BaseModPackage.Metadata.Name + ".pak";
     Version        = CacheVersion.HaloOnline106708;
     Endianness     = EndianFormat.LittleEndian;
     Deserializer   = new TagDeserializer(Version);
     Serializer     = new TagSerializer(Version);
 }
예제 #2
0
        public GameCacheModPackage(FileInfo file)
        {
            ModPackageFile = file;
            Version        = CacheVersion.HaloOnline106708;
            Endianness     = EndianFormat.LittleEndian;
            Deserializer   = new TagDeserializer(Version);
            Serializer     = new TagSerializer(Version);
            Directory      = file.Directory;

            // load mod package
            BaseModPackage = new ModPackage(file);
            DisplayName    = BaseModPackage.Metadata.Name + ".pak";

            ResourceCaches        = new ResourceCachesModPackage(BaseModPackage);
            TagCacheGenHO         = new TagCacheHaloOnline(BaseModPackage.TagCachesStreams[0], BaseModPackage.TagCacheNames[0]);
            StringTableHaloOnline = BaseModPackage.StringTable;
        }