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
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 메소드들

메소드 설명
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