FSO.Files.Formats.IFF.Chunks.SPR2.Write C# (CSharp) Méthode

Write() public méthode

public Write ( IffFile iff, Stream stream ) : bool
iff IffFile
stream Stream
Résultat bool
        public override bool Write(IffFile iff, Stream stream)
        {
            using (var io = IoWriter.FromStream(stream, ByteOrder.LITTLE_ENDIAN))
            {
                io.WriteUInt32(1001);
                io.WriteUInt32(DefaultPaletteID);
                if (Frames == null) io.WriteUInt32(0);
                else
                {
                    io.WriteUInt32((uint)Frames.Length);
                    foreach (var frame in Frames)
                    {
                        frame.Write(io);
                    }
                }
                return true;
            }
        }