-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.h
84 lines (69 loc) · 2.27 KB
/
Main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Object identifier "ViPo"
#define IDENTIFIER MAKEID(V,i,P,o)
// ------------------------------
// DEFINITION OF CONDITIONS CODES
// ------------------------------
#define CND_CONDITION 0
#define CND_LAST 0
// ---------------------------
// DEFINITION OF ACTIONS CODES
// ---------------------------
#define ACT_ACTION 0
#define ACT_LAST 10
// -------------------------------
// DEFINITION OF EXPRESSIONS CODES
// -------------------------------
#define EXP_EXPRESSION 0
#define EXP_LAST 0
// --------------------------------
// EDITION OF OBJECT DATA STRUCTURE
// --------------------------------
// These values let you store data in your extension that will be saved in the CCA.
// You would use these with a dialog...
typedef struct tagEDATA_V1
{
extHeader eHeader;
short sx;
short sy;
short swidth;
short sheight;
bool rotationAA;
} EDITDATA;
typedef EDITDATA _far * LPEDATA;
// Object versions
#define KCX_CURRENT_VERSION 1
// --------------------------------
// RUNNING OBJECT DATA STRUCTURE
// --------------------------------
// If you want to store anything between actions/conditions/expressions
// you should store it here. Also, some OEFLAGS require you to add
// structures to this structure.
typedef struct tagRDATA
{
headerObject rHo; // Header
rCom roc;
rSpr rs;
rMvt rm;
rVal rv;
bool FlipHoz;
bool FlipVer;
double Angle;
bool RotationAA;
long SourceX;
long SourceY;
long SourceWidth;
long SourceHeight;
} RUNDATA;
typedef RUNDATA _far * LPRDATA;
// Size when editing the object under level editor
// -----------------------------------------------
#define MAX_EDITSIZE sizeof(EDITDATA)
// Default flags
// -------------
#define OEFLAGS OEFLAG_SPRITES|OEFLAG_MOVEMENTS|OEFLAG_VALUES|OEFLAG_BACKSAVE|OEFLAG_SCROLLINGINDEPENDANT
#define OEPREFS OEPREFS_BACKSAVE|OEPREFS_SCROLLINGINDEPENDANT|OEPREFS_LOADONCALL|OEPREFS_BACKEFFECTS|OEPREFS_KILL
/* See OEFLAGS.txt for more info on these useful things! */
// If to handle message, specify the priority of the handling procedure
// 0= low, 255= very high. You should use 100 as normal.
// --------------------------------------------------------------------
#define WINDOWPROC_PRIORITY 100