diff --git a/src/Engine/Classes/USoundGroup.cs b/src/Engine/Classes/USoundGroup.cs new file mode 100644 index 0000000..3f7a6f8 --- /dev/null +++ b/src/Engine/Classes/USoundGroup.cs @@ -0,0 +1,30 @@ +using UELib.Branch; + +namespace UELib.Core +{ + /// + /// Implements USoundGroup/Engine.SoundGroup + /// + [UnrealRegisterClass] + [BuildGeneration(BuildGeneration.UE2_5)] + public class USoundGroup : USound + { + // p.s. It's not safe to cast to USound + public UArray Sounds; + + protected override void Deserialize() + { + base.Deserialize(); +#if UT + if ((Package.Build == UnrealPackage.GameBuild.BuildName.UT2004 || + Package.Build == UnrealPackage.GameBuild.BuildName.UT2003) + && _Buffer.LicenseeVersion < 27) + { + _Buffer.Read(out string package); + Record(nameof(package), package); + } +#endif + _Buffer.ReadArray(out Sounds); + } + } +} \ No newline at end of file