C# Class FSO.Files.Formats.IFF.Chunks.DGRP

This chunk type collects SPR# and SPR2 resources into a "drawing group" which can be used to display one tile of an object from all directions and zoom levels. Objects which span across multiple tiles have a separate DGRP chunk for each tile. A DGRP chunk always consists of 12 images (one for every direction/zoom level combination), which in turn contain info about one or more sprites.
Inheritance: IffChunk
显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
GetImage ( uint direction, uint zoom, uint worldRotation ) : DGRPImage

Gets a DGRPImage instance from this DGRP instance.

Read ( IffFile iff, Stream stream ) : void

Reads a DGRP from a stream instance.

Write ( IffFile iff, Stream stream ) : bool

Method Details

GetImage() public method

Gets a DGRPImage instance from this DGRP instance.
public GetImage ( uint direction, uint zoom, uint worldRotation ) : DGRPImage
direction uint The direction the DGRP is facing.
zoom uint Zoom level DGRP is drawn at.
worldRotation uint Current rotation of world.
return DGRPImage

Read() public method

Reads a DGRP from a stream instance.
public Read ( IffFile iff, Stream stream ) : void
iff IffFile An Iff instance.
stream Stream A Stream instance holding a DGRP chunk.
return void

Write() public method

public Write ( IffFile iff, Stream stream ) : bool
iff IffFile
stream Stream
return bool