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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
#if !defined(acm_hdr_bs)
#define acm_hdr_bs
#include <GLFW/glfw3.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <zap/bs.h>
#define acm_ver ((uint_least64_t)+0x1)
#define acm_savver ((uint_least64_t)+0x1)
#define acm_plnmlen ((zap_sz)+0x10u)
#define acm_dflplnm ("Jameson\x0\x0\x0\x0\x0\x0\x0\x0")
#if defined(acm_dbg)
#define acm_log(...) (acm_dbglog(__VA_ARGS__))
#else
#define acm_log(...) ((void)0x0u)
#endif
typedef enum {
acm_drv_h1,
acm_drv_h2,
acm_drv_h3,
acm_drv_h4,
acm_drv_h5,
acm_drv_h6,
acm_drv_h7,
acm_drv_h8,
acm_drv_m1,
acm_drv_m2,
acm_drv_m3,
acm_drv_m4,
} acm_drv;
typedef enum {
acm_shipid_add,
acm_shipid_ana,
acm_shipid_asp,
acm_shipid_boa,
acm_shipid_cob,
acm_shipid_con,
acm_shipid_cou,
acm_shipid_cyg,
acm_shipid_dov,
acm_shipid_eag,
acm_shipid_falc,
acm_shipid_fer,
acm_shipid_frei,
acm_shipid_geck,
acm_shipid_haul,
acm_shipid_hawk,
acm_shipid_keel,
acm_shipid_kes,
acm_shipid_krait,
acm_shipid_lift,
acm_shipid_lion,
acm_shipid_mamba,
acm_shipid_moray,
acm_shipid_osp,
acm_shipid_pan,
acm_shipid_puma,
acm_shipid_py,
acm_shipid_shut,
acm_shipid_side,
acm_shipid_tran,
acm_shipid_vip,
acm_shipid_vult,
} acm_shipid;
typedef enum {
acm_stat_err,
acm_stat_ok,
} acm_stat;
typedef struct {
uint_least64_t rx; /* Rotation data */
uint_least64_t ry;
uint_least64_t rz;
uint_least64_t px; /* Position data */
uint_least64_t py;
uint_least64_t pz;
uint_least64_t vx; /* Velocity data */
uint_least64_t vy;
uint_least64_t vz;
} acm_objpos;
typedef struct {
acm_objpos pos;
} acm_obj;
typedef struct {
acm_drv drv;
acm_shipid id;
} acm_ship;
typedef struct {
char nm[acm_plnmlen + 0x1u];
uint_least16_t heat;
acm_objpos pos;
uint_least64_t selsys;
acm_ship ship;
uint_least64_t tm;
} acm_pldat;
extern struct {
bool gfxisinit;
acm_pldat pldat;
char const * savloc;
GLFWwindow * win;
} acm_dat;
extern sig_atomic_t volatile acm_gotintr;
void acm_dbglog(char const * fmt,...);
void acm_init( void);
[[noreturn]] void acm_exit( acm_stat stat);
#endif
|