Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
animation_script.h File Reference

Go to the source code of this file.

Macros

#define _AS_ROUND(x)   ((int) (x < 0 ? x - 0.5 : x + 0.5))
 
#define AS_F(x)   (_AS_ROUND((x) * 32767.0 / 180.0))
 
#define as_End   AS_END,
 
#define as_Wait(time)   AS_WAIT, time,
 
#define as_EndLoop   AS_END_LOOP,
 
#define as_Restart   AS_END_LOOP,
 
#define as_Loop   AS_LOOP,
 
#define as_SetRotation(node, x, y, z)   AS_SET_ROTATION, node, AS_F(x), AS_F(y), AS_F(z),
 
#define as_SetPos(node, x, y, z)   AS_SET_POS, node, x, y, z,
 
#define as_SetScale(node, x, y, z)   AS_SET_SCALE, node, AS_F(x), AS_F(y), AS_F(z),
 
#define as_DisableMirroring   AS_OP_19,
 
#define AS_MODEL_ID(modelID)   ((modelID) + 1)
 
#define AS_NULL_MODEL   0
 
#define ENTITY_ANIM_NULL   (void*)(0xFFFFFFFF)
 

Typedefs

typedef s16 AnimScript[]
 

Enumerations

enum  {
  AS_END , AS_WAIT , AS_OP_2 , AS_END_LOOP ,
  AS_OP_4 , AS_SET_ROTATION , AS_ADD_ROTATION , AS_OP_7 ,
  AS_SET_POS , AS_OP_9 , AS_LOOP , AS_OP_11 ,
  AS_OP_12 , AS_OP_13 , AS_SET_FLAGS , AS_SET_NODE_FLAGS ,
  AS_CLEAR_NODE_FLAGS , AS_SET_SCALE , AS_SET_RENDER_MODE , AS_OP_19
}
 

Macro Definition Documentation

◆ _AS_ROUND

#define _AS_ROUND ( x)    ((int) (x < 0 ? x - 0.5 : x + 0.5))

Definition at line 31 of file animation_script.h.

◆ AS_F

#define AS_F ( x)    (_AS_ROUND((x) * 32767.0 / 180.0))

Definition at line 32 of file animation_script.h.

◆ as_End

#define as_End   AS_END,

Definition at line 34 of file animation_script.h.

◆ as_Wait

#define as_Wait ( time)    AS_WAIT, time,

Definition at line 35 of file animation_script.h.

◆ as_EndLoop

#define as_EndLoop   AS_END_LOOP,

Definition at line 36 of file animation_script.h.

◆ as_Restart

#define as_Restart   AS_END_LOOP,

Definition at line 37 of file animation_script.h.

◆ as_Loop

#define as_Loop   AS_LOOP,

Definition at line 38 of file animation_script.h.

◆ as_SetRotation

#define as_SetRotation ( node,
x,
y,
z )   AS_SET_ROTATION, node, AS_F(x), AS_F(y), AS_F(z),

Definition at line 39 of file animation_script.h.

◆ as_SetPos

#define as_SetPos ( node,
x,
y,
z )   AS_SET_POS, node, x, y, z,

Definition at line 40 of file animation_script.h.

◆ as_SetScale

#define as_SetScale ( node,
x,
y,
z )   AS_SET_SCALE, node, AS_F(x), AS_F(y), AS_F(z),

Definition at line 41 of file animation_script.h.

◆ as_DisableMirroring

#define as_DisableMirroring   AS_OP_19,

Definition at line 42 of file animation_script.h.

◆ AS_MODEL_ID

#define AS_MODEL_ID ( modelID)    ((modelID) + 1)

Definition at line 44 of file animation_script.h.

◆ AS_NULL_MODEL

#define AS_NULL_MODEL   0

Definition at line 45 of file animation_script.h.

◆ ENTITY_ANIM_NULL

#define ENTITY_ANIM_NULL   (void*)(0xFFFFFFFF)

Definition at line 48 of file animation_script.h.

Typedef Documentation

◆ AnimScript

typedef s16 AnimScript[]

Definition at line 6 of file animation_script.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AS_END 
AS_WAIT 
AS_OP_2 
AS_END_LOOP 
AS_OP_4 
AS_SET_ROTATION 
AS_ADD_ROTATION 
AS_OP_7 
AS_SET_POS 
AS_OP_9 
AS_LOOP 
AS_OP_11 
AS_OP_12 
AS_OP_13 
AS_SET_FLAGS 
AS_SET_NODE_FLAGS 
AS_CLEAR_NODE_FLAGS 
AS_SET_SCALE 
AS_SET_RENDER_MODE 
AS_OP_19 

Definition at line 8 of file animation_script.h.

8 {
9 AS_END,
10 AS_WAIT,
11 AS_OP_2,
13 AS_OP_4,
16 AS_OP_7,
18 AS_OP_9,
19 AS_LOOP,
29};
@ AS_OP_12
@ AS_CLEAR_NODE_FLAGS
@ AS_SET_FLAGS
@ AS_OP_2
@ AS_SET_NODE_FLAGS
@ AS_SET_POS
@ AS_SET_RENDER_MODE
@ AS_OP_9
@ AS_END_LOOP
@ AS_OP_13
@ AS_OP_7
@ AS_SET_ROTATION
@ AS_OP_4
@ AS_OP_11
@ AS_ADD_ROTATION
@ AS_END
@ AS_SET_SCALE
@ AS_OP_19
@ AS_WAIT
@ AS_LOOP