Inheritance: IDisposable
 public HitResourcegroup(string HitPath, string EVTPath, string HSMPath)
 {
     HitResource = new Hit(File.Open(HitPath, FileMode.Open, FileAccess.Read, FileShare.Read));
     Events = new EVT(File.Open(EVTPath, FileMode.Open, FileAccess.Read, FileShare.Read));
     if(HSMPath != "")
         Symbols = new HSM(HSMPath);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Tests the DBPFArchive class.
        /// </summary>
        public static void DBPFTest()
        {
            Console.WriteLine("Attempting to parse XA...");

            Console.WriteLine("Attempting to parse EVT...");
            EVT Event = new EVT(File.Open(StartupPath + "\\sounddata\\tsov2.evt", FileMode.Open, FileAccess.Read, FileShare.Read));

            Console.WriteLine("Attempting to parse TRK...");
            TRK Track = FileManager.GetTRK(Event.Events[2].TrackID);

            Console.WriteLine("Attempting to parse HIT...");
            Hit Hit = new Hit(File.Open(StartupPath + "\\sounddata\\tsoep5.hit", FileMode.Open, FileAccess.Read, FileShare.Read));
        }