-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTNTState.js
47 lines (43 loc) · 1.12 KB
/
TNTState.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
module.exports = class TNTState {
constructor() {
this.version = "unknown"
this.gitDate = "unknown"
this.buildDate = "unknown"
this.time = {
hours: 0,
minutes: 0,
seconds: 0,
timestamp: 0,
}
this.lockSolenoid = false;
this.toggles = {
toggle1: false,
toggle2: false,
toggle3: false,
toggle4: false,
toggle5: false,
failing: false,
override: false
}
this.wires = {
wireD: 'U',
wire2: 'C',
wire3: 'U',
wire4: 'U',
failing: false,
override: false
}
this.light = false;
this.exampleDoor = false;
this.key = false;
this.keySolenoid = false;
this.password = ''
this.overrideWinButton = false;
this.overrideDoorAjar = false;
this.exitCode = true;
this.finished = false;
this.solved = false;
this.timeLeftSolved = '';
this.playSong = '';
}
}