C# Класс 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.
Наследование: IffChunk
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetImage() публичный метод

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.
Результат DGRPImage

Read() публичный метод

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.
Результат void

Write() публичный метод

public Write ( IffFile iff, Stream stream ) : bool
iff IffFile
stream Stream
Результат bool