-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
59 lines (50 loc) · 1.08 KB
/
index.js
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
if (process.platform !== `win32`) {
return console.error(`Only the Windows platform is supported. Found: ${process.platform}. Exiting.`)
}
let simConnectLibrary = null
try {
simConnectLibrary = require(`./build/Release/msfs-simconnect-nodejs`)
} catch (exception) {
console.error(`Could not load the SimConnect SDK. Does the build directory exists, so is it compiled? Exiting.`)
console.error(exception);
return;
}
console.log(simConnectLibrary)
simConnectLibrary.objectId = {
USER: 0
}
simConnectLibrary.dataRequestFlag = {
DEFAULT: 0,
CHANGED: 1,
TAGGED: 2
}
simConnectLibrary.datatype = {
INVALID: 0,
INT32: 1,
INT64: 2,
FLOAT32: 3,
FLOAT64: 4,
STRING8: 5,
STRING32: 6,
STRING64: 7,
STRING128: 8,
STRING256: 9,
STRING260: 10,
STRINGV: 11
}
simConnectLibrary.simobjectType = {
USER: 0,
ALL: 1,
AIRCRAFT: 2,
HELICOPTER: 3,
BOAT: 4,
GROUND: 5,
}
simConnectLibrary.period = {
NEVER: 0,
ONCE: 1,
VISUAL_FRAME: 2,
SIM_FRAME: 3,
SECOND: 4,
}
module.exports = simConnectLibrary