-
Notifications
You must be signed in to change notification settings - Fork 13
/
h3m_event_body.h
42 lines (33 loc) · 949 Bytes
/
h3m_event_body.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
// Created by John Åkerblom 2014-12-15
#ifndef __H3M_EVENT_BODY_H_DEF__
#define __H3M_EVENT_BODY_H_DEF__
// Included by h3m.h
#include "../../utils/msvc_comp_stdint.h"
#pragma pack(push, 1)
// BINARY COMPATIBLE
struct H3M_EVENT_BODY_ROEAB {
struct H3M_COMMON_RESOURCES resources;
uint8_t applies_to_players;
uint8_t applies_to_computer;
uint16_t first_occurence;
uint8_t subsequent_occurences;
uint8_t unknown2[17];
};
// BINARY COMPATIBLE
struct H3M_EVENT_BODY_SOD {
struct H3M_COMMON_RESOURCES resources;
uint8_t applies_to_players;
uint8_t applies_to_human; // SOD feature
uint8_t applies_to_computer;
uint16_t first_occurence;
uint8_t subsequent_occurences;
uint8_t unknown1[17];
};
union H3M_EVENT_BODY {
struct H3M_EVENT_BODY_ROEAB roe;
struct H3M_EVENT_BODY_ROEAB ab;
struct H3M_EVENT_BODY_ROEAB roeab;
struct H3M_EVENT_BODY_SOD sod;
};
#pragma pack(pop)
#endif