Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
animation_script.h
Go to the documentation of this file.
1
#ifndef ANIMATION_SCRIPT_H
2
#define ANIMATION_SCRIPT_H
3
4
#include "common.h"
5
6
typedef
s16
AnimScript
[];
7
8
enum
{
9
AS_END
,
10
AS_WAIT
,
11
AS_OP_2
,
12
AS_END_LOOP
,
13
AS_OP_4
,
14
AS_SET_ROTATION
,
15
AS_ADD_ROTATION
,
16
AS_OP_7
,
17
AS_SET_POS
,
18
AS_OP_9
,
19
AS_LOOP
,
20
AS_OP_11
,
21
AS_OP_12
,
22
AS_OP_13
,
23
AS_SET_FLAGS
,
24
AS_SET_NODE_FLAGS
,
25
AS_CLEAR_NODE_FLAGS
,
26
AS_SET_SCALE
,
27
AS_SET_RENDER_MODE
,
28
AS_OP_19
,
29
};
30
31
#define _AS_ROUND(x) ((int) (x < 0 ? x - 0.5 : x + 0.5))
32
#define AS_F(x) (_AS_ROUND((x) * 32767.0 / 180.0))
33
34
#define as_End AS_END,
35
#define as_Wait(time) AS_WAIT, time,
36
#define as_EndLoop AS_END_LOOP,
37
#define as_Restart AS_END_LOOP,
38
#define as_Loop AS_LOOP,
39
#define as_SetRotation(node, x, y, z) AS_SET_ROTATION, node, AS_F(x), AS_F(y), AS_F(z),
40
#define as_SetPos(node, x, y, z) AS_SET_POS, node, x, y, z,
41
#define as_SetScale(node, x, y, z) AS_SET_SCALE, node, AS_F(x), AS_F(y), AS_F(z),
42
#define as_DisableMirroring AS_OP_19,
43
44
#define AS_MODEL_ID(modelID) ((modelID) + 1)
45
#define AS_NULL_MODEL 0
46
47
// used in entity models
48
#define ENTITY_ANIM_NULL (void*)(0xFFFFFFFF)
49
#endif
AnimScript
s16 AnimScript[]
Definition
animation_script.h:6
AS_OP_12
@ AS_OP_12
Definition
animation_script.h:21
AS_CLEAR_NODE_FLAGS
@ AS_CLEAR_NODE_FLAGS
Definition
animation_script.h:25
AS_SET_FLAGS
@ AS_SET_FLAGS
Definition
animation_script.h:23
AS_OP_2
@ AS_OP_2
Definition
animation_script.h:11
AS_SET_NODE_FLAGS
@ AS_SET_NODE_FLAGS
Definition
animation_script.h:24
AS_SET_POS
@ AS_SET_POS
Definition
animation_script.h:17
AS_SET_RENDER_MODE
@ AS_SET_RENDER_MODE
Definition
animation_script.h:27
AS_OP_9
@ AS_OP_9
Definition
animation_script.h:18
AS_END_LOOP
@ AS_END_LOOP
Definition
animation_script.h:12
AS_OP_13
@ AS_OP_13
Definition
animation_script.h:22
AS_OP_7
@ AS_OP_7
Definition
animation_script.h:16
AS_SET_ROTATION
@ AS_SET_ROTATION
Definition
animation_script.h:14
AS_OP_4
@ AS_OP_4
Definition
animation_script.h:13
AS_OP_11
@ AS_OP_11
Definition
animation_script.h:20
AS_ADD_ROTATION
@ AS_ADD_ROTATION
Definition
animation_script.h:15
AS_END
@ AS_END
Definition
animation_script.h:9
AS_SET_SCALE
@ AS_SET_SCALE
Definition
animation_script.h:26
AS_OP_19
@ AS_OP_19
Definition
animation_script.h:28
AS_WAIT
@ AS_WAIT
Definition
animation_script.h:10
AS_LOOP
@ AS_LOOP
Definition
animation_script.h:19
src
animation_script.h
Generated by
1.10.0