Some cleanups, comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2460 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -25,8 +25,11 @@
|
|||||||
#include "velocity.h"
|
#include "velocity.h"
|
||||||
|
|
||||||
|
|
||||||
|
// Animation types:
|
||||||
#define RANDOM_ANIM (1 << 0)
|
#define RANDOM_ANIM (1 << 0)
|
||||||
|
// Next index is randomly chose
|
||||||
#define CIRCULAR_ANIM (1 << 1)
|
#define CIRCULAR_ANIM (1 << 1)
|
||||||
|
//
|
||||||
#define YOYO_ANIM (1 << 2)
|
#define YOYO_ANIM (1 << 2)
|
||||||
#define ANIM_MASK (RANDOM_ANIM | CIRCULAR_ANIM | YOYO_ANIM)
|
#define ANIM_MASK (RANDOM_ANIM | CIRCULAR_ANIM | YOYO_ANIM)
|
||||||
|
|
||||||
@@ -42,10 +45,19 @@
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
COUNT StartIndex;
|
COUNT StartIndex;
|
||||||
|
// Index of the first image (for image animation) or
|
||||||
|
// index of the first color map (for palette animation)
|
||||||
BYTE NumFrames;
|
BYTE NumFrames;
|
||||||
|
// number of frames
|
||||||
|
|
||||||
BYTE AnimFlags;
|
BYTE AnimFlags;
|
||||||
COUNT BaseFrameRate, RandomFrameRate,
|
// One of RANDOM_ANIM, CIRCULAR_ANIM, or YOYO_ANIM
|
||||||
BaseRestartRate, RandomRestartRate;
|
|
||||||
|
COUNT BaseFrameRate;
|
||||||
|
COUNT RandomFrameRate;
|
||||||
|
COUNT BaseRestartRate;
|
||||||
|
COUNT RandomRestartRate;
|
||||||
|
|
||||||
DWORD BlockMask;
|
DWORD BlockMask;
|
||||||
} ANIMATION_DESC;
|
} ANIMATION_DESC;
|
||||||
typedef ANIMATION_DESC *PANIMATION_DESC;
|
typedef ANIMATION_DESC *PANIMATION_DESC;
|
||||||
|
|||||||
Reference in New Issue
Block a user