diff --git a/src/Pure3D/Chunks/AnimatedObjectFactory.cs b/src/Pure3D/Chunks/AnimatedObjectFactory.cs new file mode 100644 index 0000000..9b4fa18 --- /dev/null +++ b/src/Pure3D/Chunks/AnimatedObjectFactory.cs @@ -0,0 +1,33 @@ +using System.IO; + +namespace Pure3D.Chunks +{ + [ChunkType(131072)] + public class AnimatedObjectFactory : VersionNamed + { + public string CompositeDrawable; + public uint NumberOfAnimations; + + public AnimatedObjectFactory(File file, uint type) : base(file, type) + { + } + + public override void ReadHeader(Stream stream, long length) + { + base.ReadHeader(stream, length); + BinaryReader reader = new(stream); + CompositeDrawable = Util.ReadString(reader); + NumberOfAnimations = reader.ReadUInt32(); + } + + public override string ToString() + { + return $"Animated Object Factory: {Name} ({NumberOfAnimations} Animations, Version: {Version})"; + } + + public override string ToShortString() + { + return $"Animated Object Factory"; + } + } +} \ No newline at end of file