0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
|
3
|
|
4 #include "VectorTypes.h"
|
|
5
|
|
6
|
|
7
|
|
8 /* 107 */
|
|
9 #pragma pack(push, 1)
|
|
10 struct ThreadWard
|
|
11 {
|
|
12 //----- (00438B0B) --------------------------------------------------------
|
|
13 inline ThreadWard()
|
|
14 {
|
|
15 InitializeCriticalSection(&csAsyncMouse);
|
|
16 InitializeCriticalSection(&cs2);
|
|
17 InitializeCriticalSection(&cs3);
|
|
18 InitializeCriticalSection(&csAsyncKeyboard);
|
|
19 }
|
|
20
|
|
21 //----- (00438B54) --------------------------------------------------------
|
|
22 virtual ~ThreadWard()
|
|
23 {
|
|
24 ThreadWard *v1; // esi@1
|
|
25
|
|
26 v1 = this;
|
|
27 //this->vdestructor_ptr = &ThreadWard_destructors;
|
|
28 DeleteCriticalSection(&this->csAsyncKeyboard);
|
|
29 DeleteCriticalSection(&v1->cs3);
|
|
30 DeleteCriticalSection(&v1->cs2);
|
|
31 DeleteCriticalSection(&v1->csAsyncMouse);
|
|
32 }
|
|
33
|
|
34 void (__thiscall ***vdestructor_ptr)(ThreadWard *, bool);
|
|
35 _RTL_CRITICAL_SECTION csAsyncMouse;
|
|
36 _RTL_CRITICAL_SECTION cs2;
|
|
37 _RTL_CRITICAL_SECTION cs3;
|
|
38 _RTL_CRITICAL_SECTION csAsyncKeyboard;
|
|
39 };
|
|
40 #pragma pack(pop)
|
|
41
|
|
42 /* 106 */
|
|
43 #pragma pack(push, 1)
|
|
44 struct Mouse
|
|
45 {
|
|
46 //----- (00467E4E) --------------------------------------------------------
|
|
47 inline Mouse(ThreadWard *pWard)
|
|
48 {
|
|
49 uCursorTextureID = 0;
|
|
50 uCursorTextureID_2 = 0;
|
|
51 hWnd = 0;
|
|
52 pCursorBitmap_sysmem = 0;
|
|
53 field_34 = 0;
|
|
54 pCursorBitmap2_sysmem = 0;
|
|
55 pCursorBitmap3_sysmembits_16bit = 0;
|
|
56 ptr_90 = 0;
|
|
57 pWard = pWard;
|
|
58 }
|
|
59
|
|
60 void GetClickPos(unsigned int *pX, unsigned int *pY);
|
|
61 void RemoveHoldingItem();
|
|
62 void SetCursorBitmapFromItemID(unsigned int uItemID);
|
|
63 void SetCurrentCursorBitmap();
|
|
64 void SetCursorBitmap(const char *pName);
|
|
65 LONG _469AE4();
|
|
66 void ClearCursor();
|
|
67 void AllocCursorSystemMem();
|
|
68 void *DoAllocCursorMem();
|
|
69 POINT *GetCursorPos(POINT *p);
|
|
70 void Initialize(HWND hWnd);
|
762
|
71 void SetActive(bool active);
|
0
|
72 void Deactivate();
|
|
73 void DrawCursor();
|
|
74 void _469E1C();
|
|
75 void _469E24();
|
|
76 void DrawCursorToTarget();
|
|
77 void _469EA4();
|
|
78 void Activate(int bActive);
|
|
79 void SetMouseClick(int x, int y);
|
|
80
|
|
81
|
|
82 unsigned int uPointingObjectID;
|
|
83 unsigned int bActive;
|
|
84 int field_8;
|
|
85 int field_C;
|
|
86 unsigned int bInitialized;
|
791
|
87 unsigned int bRedraw;
|
0
|
88 int field_18;
|
|
89 int field_1C;
|
|
90 int field_20;
|
|
91 unsigned int uCursorTextureID;
|
|
92 unsigned int uCursorTextureID_2;
|
|
93 HWND hWnd;
|
|
94 unsigned __int16 *pCursorBitmap_sysmem;
|
|
95 int field_34;
|
|
96 unsigned __int8 *pCursorBitmap2_sysmem;
|
|
97 unsigned __int16 *pCursorBitmap3_sysmembits_16bit;
|
|
98 int field_40;
|
|
99 int field_44;
|
|
100 int field_48;
|
|
101 int field_4C;
|
|
102 int field_50;
|
|
103 int field_54;
|
|
104 int uCursorBitmapPitch;
|
|
105 int field_5C[13];
|
|
106 void *ptr_90;
|
|
107 int field_94;
|
|
108 int field_98;
|
|
109 int field_9C;
|
|
110 int field_A0;
|
|
111 int field_A4;
|
|
112 int field_A8;
|
|
113 int field_AC;
|
|
114 int field_B0;
|
|
115 int field_B4;
|
|
116 int field_B8;
|
|
117 int field_BC;
|
|
118 int field_C0;
|
|
119 Vec2_int_ pCursorBitmapPos;
|
|
120 int uCursorBitmapWidth;
|
|
121 int uCursorBitmapHeight;
|
|
122 int field_D4;
|
|
123 int field_D8;
|
|
124 int field_DC;
|
|
125 int field_E0;
|
|
126 Vec4_int_ pCursorBitmapRect;
|
|
127 char field_F4;
|
|
128 char pCurrentCursorName[11];
|
|
129 int field_100;
|
|
130 int field_104;
|
|
131 unsigned int uMouseClickX;
|
|
132 unsigned int uMouseClickY;
|
|
133 ThreadWard *pWard;
|
|
134 };
|
|
135 #pragma pack(pop)
|
|
136
|
|
137
|
|
138
|
|
139
|
|
140
|
1038
|
141 extern Mouse *pMouse; |