forked from KaidenTBIO/ABKCaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncDataClass.h
63 lines (49 loc) · 1.21 KB
/
syncDataClass.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
#ifndef CASTER_SYNCDATA
#define CASTER_SYNCDATA
#if _MSC_VER >= 1300
# if !defined(_WINDOWS_)
# if !defined(NO_WIN32_LEAN_AND_MEAN)
# define WIN32_LEAN_AND_MEAN
# define _VCL_LEAN_AND_MEAN
# endif
# endif
# include <windows.h>
# include <iostream>
#else
# include <windows.h>
# include <iostream.h>
#endif
#include "const.h"
#include "etc.h"
#define sync_cycle_size 64
typedef struct{
DWORD HPA;
DWORD HPB;
DWORD XA;
DWORD XB;
}syncDataArrayStruct;
class syncDataSubClass{
private:
syncDataArrayStruct syncDataArray[ sync_cycle_size ];
public:
void SetSyncDataA( DWORD, DWORD, DWORD );
void SetSyncDataB( DWORD, DWORD, DWORD );
int GetSyncDataAddress( DWORD, syncDataArrayStruct** );
int init();
};
class syncDataClass{
private:
syncDataSubClass Here;
syncDataSubClass Away;
public:
void Print( DWORD );
void SetSyncDataHere( DWORD, BYTE, DWORD, DWORD ); //gameTime, playerSide, HP, x
void SetSyncDataHereA( DWORD, DWORD, DWORD );
void SetSyncDataHereB( DWORD, DWORD, DWORD );
void SetSyncDataAway( DWORD, BYTE, DWORD, DWORD ); //gameTime, playerSide, HP, x
void SetSyncDataAwayA( DWORD, DWORD, DWORD );
void SetSyncDataAwayB( DWORD, DWORD, DWORD );
int TestSyncData( DWORD );
int init();
};
#endif