nw::lyt::res::AnimationBlock Structure

Syntax

struct AnimationBlock
{
   ut::BinaryBlockHeader blockHeader;
   ut::ResU16 frameSize;
   ut::ResU8 loop;
   ut::ResU8 padding[1];
   ut::ResU16 fileNum;
   ut::ResU16 animContNum;
   ut::ResU32 animContOffsetsOffset;
};

Description

Data block for defining an animation.

res::DATABLOCKKIND_PANEANIMINFO is specified for kind in blockHeader.

The following data structure follows this structure.

ut::ResU32 fileNameOffsets[fileNum]
・ u8 namePool[]
ut::ResU32 animContOffsets[animContNum]
AnimationContent animCont0
・ …

The structure stores offsets to the texture resource names being referenced (from fileNameOffsets) in the fileNameOffsets array.

The structure stores offsets to the animation content (from the start of the data block) in the animContOffsets array.

Member Variables

blockHeader ut::BinaryBlockHeader Header.
frameSize ut::ResU16 The number of frames.
loop ut::ResU8 Stores 1 if the animation is looped.
padding ut::ResU8 (Not used.)
fileNum ut::ResU16 The number of texture resources being referenced.
animContNum ut::ResU16 The number of animation contents.
animContOffsetsOffset ut::ResU32 Offset to animContOffsets (from the start of the data block).

See Also

Lan

Revision History

2010/01/26
Initial version.

CONFIDENTIAL