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
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat DGRPImage

Read() public méthode

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.
Résultat void

Write() public méthode

public Write ( IffFile iff, Stream stream ) : bool
iff IffFile
stream Stream
Résultat bool