-
Notifications
You must be signed in to change notification settings - Fork 2
/
Extension.h
60 lines (40 loc) · 1.41 KB
/
Extension.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
class Extension
{
public:
LPRDATA rdPtr;
LPRH rhPtr;
Edif::Runtime Runtime;
static const int MinimumBuild = 252;
static const int Version = 1;
static const int OEFLAGS = 0;
static const int OEPREFS = 0;
static const int WindowProcPriority = 100;
Extension(LPRDATA rdPtr, LPEDATA edPtr, fpcob cobPtr);
~Extension();
int oiListItemSize;
/* Add any data you want to store in your extension to this class
(eg. what you'd normally store in rdPtr)
Unlike rdPtr, you can store real C++ objects with constructors
and destructors, without having to call them manually or store
a pointer.
*/
bool isHWA;
UINT codepage;
/// Actions
void CreateAtPos(LPTSTR objName, eventParam* evtParam, int layer);
void CreateAtPosXY(LPTSTR objName, int x, int y, int layer);
void CreateBackdropAtPos(LPTSTR objName, long position, int type, int layer);
void CreateBackdropAtPosXY(LPTSTR objName, int x, int y, int type, int layer);
/// Expressions
TCHAR* NameFromFixed(int fixed);
// These are called if there's no function linked to an ID
void Action(int ID, LPRDATA rdPtr, long param1, long param2);
long Condition(int ID, LPRDATA rdPtr, long param1, long param2);
long Expression(int ID, LPRDATA rdPtr, long param);
short Handle();
short Display();
short Pause();
short Continue();
bool Save(HANDLE File);
bool Load(HANDLE File);
};