A file in a sound pack.
Inheritance: IWwiseObject
コード例 #1
0
ファイル: SoundScanner.cs プロジェクト: XeCREATURE/TagTool
        public void Visit(SoundPackFile file)
        {
            // Raise the FoundSoundPackFile event
            SoundFileEventArgs <SoundPackFile> args = new SoundFileEventArgs <SoundPackFile>(file, _currentEvent);

            OnFoundSoundPackFile(args);
        }
コード例 #2
0
        private void ReadFileTable(EndianReader reader)
        {
            int fileCount = reader.ReadInt32();

            // Read each file and sort it into its folder
            for (int i = 0; i < fileCount; i++)
            {
                SoundPackFile file = new SoundPackFile(this, reader);

                // Put the file into its parent folder
                SoundPackFolder folder = FindFolderByID(file.FolderID);
                if (folder != null)
                {
                    folder.AddFile(file);
                }

                // Associate its ID
                _filesById[file.ID] = file;
                _objects.Add(file);
            }
        }
コード例 #3
0
 /// <summary>
 /// Adds a file to the folder.
 /// </summary>
 /// <param name="file">The file to add.</param>
 public void AddFile(SoundPackFile file)
 {
     Files.Add(file);
 }
コード例 #4
0
ファイル: SoundPackFolder.cs プロジェクト: XeCREATURE/TagTool
 /// <summary>
 /// Adds a file to the folder.
 /// </summary>
 /// <param name="file">The file to add.</param>
 public void AddFile(SoundPackFile file)
 {
     Files.Add(file);
 }
コード例 #5
0
ファイル: SoundPack.cs プロジェクト: TheGuardians/TagTool
        private void ReadFileTable(EndianReader reader)
        {
            int fileCount = reader.ReadInt32();

            // Read each file and sort it into its folder
            for (int i = 0; i < fileCount; i++)
            {
                SoundPackFile file = new SoundPackFile(this, reader);

                // Put the file into its parent folder
                SoundPackFolder folder = FindFolderByID(file.FolderID);
                if (folder != null)
                    folder.AddFile(file);

                // Associate its ID
                _filesById[file.ID] = file;
                _objects.Add(file);
            }
        }