forked from noah-/d2bs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Events.h
80 lines (68 loc) · 1.78 KB
/
Events.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
#pragma once
#include <windows.h>
bool ChatEvent(char* lpszNick, wchar_t* lpszMsg);
bool ChatInputEvent(wchar_t* lpszMsg);
void LifeEvent(DWORD dwLife);
void ManaEvent(DWORD dwMana);
void CopyDataEvent(DWORD dwMode, wchar_t* lpszMsg);
void GameMsgEvent(char* lpszMsg);
void GameActionEvent(BYTE mode, DWORD param1, DWORD param2, char* name1, wchar_t* name2);
bool WhisperEvent(char* lpszNick, wchar_t* lpszMsg);
bool KeyDownUpEvent(WPARAM bByte, BYTE bUp);
void PlayerAssignEvent(DWORD dwUnitId);
void MouseClickEvent(int button, POINT pt, bool bUp);
void MouseMoveEvent(POINT pt);
void ScriptBroadcastEvent(JSContext* cx, uint argc, jsval* argv);
void GoldDropEvent(DWORD GID, BYTE Mode);
void ItemActionEvent(DWORD GID, char* Code, BYTE Mode, bool Global);
bool GamePacketEvent(BYTE* pPacket, DWORD dwSize);
bool GamePacketSentEvent(BYTE* pPacket, DWORD dwSize);
bool RealmPacketEvent(BYTE* pPacket, DWORD dwSize);
void ReleaseGameLock(void);
void TakeGameLock(void);
struct ChatEventHelper {
char *name, *nick;
wchar_t* msg;
};
struct CopyDataHelper {
DWORD mode;
wchar_t* msg;
};
struct ItemEventHelper {
DWORD id;
char* code;
WORD mode;
bool global;
};
struct KeyEventHelper {
BOOL up;
WPARAM key;
};
struct GameActionEventHelper {
BYTE mode;
DWORD param1, param2;
char* name1;
wchar_t* name2;
};
struct SingleArgHelper {
DWORD arg1;
};
struct DoubleArgHelper {
DWORD arg1, arg2;
};
struct TripleArgHelper {
DWORD arg1, arg2, arg3;
};
struct QuadArgHelper {
DWORD arg1, arg2, arg3, arg4;
};
struct BCastEventHelper {
JSContext* cx;
jsval* argv;
uint argc;
};
struct PacketEventHelper {
char* name;
BYTE* pPacket;
DWORD dwSize;
};