-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCommon.h
48 lines (40 loc) · 1.26 KB
/
Common.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
// Include guard
#ifndef COMMON_H
#define COMMON_H
// Suppress the deprecated warnings for VC2005
#define _CRT_SECURE_NO_WARNINGS
// General includes
#include "TemplateInc.h"
#include <fstream>
#include <shlwapi.h>
#include <vector>
#pragma comment(lib, "shlwapi.lib")
using namespace std;
#include "CfcFile.h"
#include "Data.h"
#include "FlagsPrefs.h"
#include "ImageFlt.h"
#include "ImgFlt.h"
#include "Information.h"
#include "ObjectSelection.h"
#include "Resource.h"
#include "rTemplate.h"
#include "ObjectSelection.h"
#define generateEvent(e) callRunTimeFunction(rdPtr, RFUNCTION_GENERATEEVENT, (e), 0)
bool checkRectangleOverlap(LPRDATA rdPtr, Layer & layer, Tileset & tileset, Rect rect);
bool checkPixelSolid(LPRDATA rdPtr, Layer & layer, Tileset & tileset, int pixelX, int pixelY);
#ifdef HWABETA
#include <d3d9.h>
#endif
// Globals and prototypes
extern HINSTANCE hInstLib;
extern short * conditionsInfos;
extern short * actionsInfos;
extern short * expressionsInfos;
extern long(WINAPI ** ConditionJumps)(LPRDATA rdPtr, long param1, long param2);
extern short(WINAPI ** ActionJumps)(LPRDATA rdPtr, long param1, long param2);
extern long(WINAPI ** ExpressionJumps)(LPRDATA rdPtr, long param);
extern PropData Properties[];
extern WORD DebugTree[];
// End include guard
#endif