public SoundBankActorMixer(EndianReader reader, uint id) { ID = id; Info = new SoundInfo(reader); // Actor-mixers are just a list of children int numChildren = reader.ReadInt32(); ChildIDs = new uint[numChildren]; for (int i = 0; i < numChildren; i++) ChildIDs[i] = reader.ReadUInt32(); }
public SoundBankMusicSegment(EndianReader reader, uint id) { ID = id; Info = new SoundInfo(reader); // Read child IDs int numChildren = reader.ReadInt32(); ChildIDs = new uint[numChildren]; for (int i = 0; i < numChildren; i++) ChildIDs[i] = reader.ReadUInt32(); }
public SoundBankMusicPlaylist(EndianReader reader, uint id) { ID = id; Info = new SoundInfo(reader); // Read segment IDs int numSegments = reader.ReadInt32(); SegmentIDs = new uint[numSegments]; for (int i = 0; i < numSegments; i++) SegmentIDs[i] = reader.ReadUInt32(); // TODO: read the rest of the data }
public SoundBankSequenceContainer(EndianReader reader, uint id) { ID = id; Info = new SoundInfo(reader); // hax reader.Skip(0x18); // Read child IDs int numChildren = reader.ReadInt32(); ChildIDs = new uint[numChildren]; for (int i = 0; i < numChildren; i++) ChildIDs[i] = reader.ReadUInt32(); }
public SoundBankMusicSwitchContainer(EndianReader reader, uint id) { ID = id; Info = new SoundInfo(reader); // Read segment IDs // TODO: this is pretty similar to SoundBankMusicPlaylist, // maybe this can be factored out into a common class somehow? int numSegments = reader.ReadInt32(); SegmentIDs = new uint[numSegments]; for (int i = 0; i < numSegments; i++) SegmentIDs[i] = reader.ReadUInt32(); // TODO: read the rest of the data }