mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
work on light switches
This commit is contained in:
53
src/shared/Enums.lua
Normal file
53
src/shared/Enums.lua
Normal 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
|
||||
Reference in New Issue
Block a user