work on light switches

This commit is contained in:
2024-04-14 01:16:58 -04:00
parent 0b0a4fc4bc
commit f670e19c3c
3 changed files with 100 additions and 27 deletions

53
src/shared/Enums.lua Normal file
View File

@@ -0,0 +1,53 @@
--!optimize 2
--!native
--!strict
local Enums = {}
export type EnumValue = EnumButton | EnumButtonTree | EnumElevator | EnumInteractables
export type EnumButton = typeof(Enums.Button)
export type EnumButtonTree = typeof(Enums.ButtonTree)
export type EnumElevator = typeof(Enums.Elevator)
export type EnumInteractables = typeof(Enums.Interactables)
export type ButtonValues = typeof(Enums.Button.Car) |
typeof(Enums.Button.Landing) |
typeof(Enums.Button.Special) |
typeof(Enums.Button.Relay)
export type ButtonTreeValues = typeof(Enums.ButtonTree.Car) |
typeof(Enums.ButtonTree.Landing) |
typeof(Enums.ButtonTree.Special) |
typeof(Enums.ButtonTree.Relays) |
typeof(Enums.ButtonTree.Unknown)
export type InteractablesValues = typeof(Enums.Interactables.LightSwitch) |
typeof(Enums.Interactables.Light)
export type ElevatorValues = typeof(Enums.Elevator.Otis1960)
Enums.Button = {
Car = "CarButton" :: "CarButton",
Landing = "LandingButton" :: "LandingButton",
Special = "SpecialButton" :: "SpecialButton",
Relay = "RelayButton" :: "RelayButton"
}
Enums.ButtonTree = {
Car = "Car" :: "Car",
Landing = "Landing" :: "Landing",
Special = "Special" :: "Special",
Relays = "Relays" :: "Relays",
Unknown = "Unknown" :: "Unknown"
}
Enums.Elevator = {
Otis1960 = "Otis1960" :: "Otis1960"
}
Enums.Interactables = {
LightSwitch = "LightSwitch" :: "LightSwitch",
Light = "Light" :: "Light"
}
return Enums