forked from noah-/d2bs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.h
89 lines (75 loc) · 1.64 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
81
82
83
84
85
86
87
88
89
#pragma once
#include <windows.h>
bool ChatEvent(char* lpszNick, char* lpszMsg);
void LifeEvent(DWORD dwLife);
void ManaEvent(DWORD dwMana);
void CopyDataEvent(DWORD dwMode, char* lpszMsg);
void GameMsgEvent(char* lpszMsg);
void GameActionEvent(BYTE mode, DWORD param1, DWORD param2, char* name1, char* name2);
bool WhisperEvent(char* lpszNick, char* 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, uintN 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 *event, *nick, *msg;
};
struct CopyDataHelper
{
DWORD mode;
char* 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, *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;
uintN argc;
};
struct GamePacketHelper
{
BYTE* pPacket;
DWORD dwSize;
};