mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 06:41:55 +00:00
why
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
.obsidian
|
||||
sourcemap.json
|
||||
.zed
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -7,13 +7,13 @@ local MainDir = ElevatorsDir.Parent
|
||||
|
||||
local ElevatorSystem = ElevatorsDir:WaitForChild("System")
|
||||
|
||||
local ArrowLanterns = require(ElevatorSystem:WaitForChild("Lanterns"):WaitForChild("Arrows"))
|
||||
local ButtonEvents = require(script:WaitForChild("Buttons"))
|
||||
local InitElevator = require(ElevatorSystem)
|
||||
local Doors = require(ParentDir:WaitForChild("Doors"))
|
||||
local Buttons = require(ParentDir:WaitForChild("Buttons"))
|
||||
local ArrowLanterns = require(ElevatorSystem:WaitForChild("Lanterns"):WaitForChild("Arrows"))
|
||||
local ButtonEvents = require(ElevatorSystem:WaitForChild("Buttons"))
|
||||
local Doors = require(ElevatorSystem:WaitForChild("Doors"))
|
||||
local Buttons = require(ElevatorSystem:WaitForChild("Buttons"))
|
||||
local TractionRopes = require(ElevatorSystem:WaitForChild("TractionRopes"))
|
||||
local MovingObjects = require(ParentDir:WaitForChild("MovingObjects"))
|
||||
local TractionRopes = require(ParentDir:WaitForChild("TractionRopes"))
|
||||
local ElevatorTypes = require(MainDir:WaitForChild("Types"):WaitForChild("Elevator"))
|
||||
|
||||
type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor))
|
||||
@@ -11,13 +11,13 @@ local ElevatorSystem = ElevatorsDir:WaitForChild("System")
|
||||
|
||||
local InitElevator = require(ElevatorSystem)
|
||||
local ArrowLantern = require(ElevatorSystem:WaitForChild("Lanterns"):WaitForChild("Arrows"))
|
||||
local Buttons = require(ElevatorSystem:WaitForChild("Buttons"))
|
||||
local TractionRopes = require(ElevatorSystem:WaitForChild("TractionRopes"))
|
||||
local Doors = require(ElevatorSystem:WaitForChild("Doors"))
|
||||
local Events = require(script:WaitForChild("Events"))
|
||||
local Config = require(script:WaitForChild("Config"))
|
||||
local Buttons = require(script:WaitForChild("Buttons"))
|
||||
local Leveling = require(script:WaitForChild("Leveling"))
|
||||
local MovingObjects = require(script:WaitForChild("MovingObjects"))
|
||||
local TractionRopes = require(script:WaitForChild("TractionRopes"))
|
||||
local Doors = require(script:WaitForChild("Doors"))
|
||||
local TagsModule = require(MainDir:WaitForChild("Map"):WaitForChild("Load"):WaitForChild("Tags"))
|
||||
|
||||
return function(TagsConstructor: TagsModule.TagsConstructor, ButtonTags: TagsModule.ElevatorButtons, LanternTags: TagsModule.Lanterns, LandingDoorTags: TagsModule.LandingTags)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
local ParentDir = script.Parent
|
||||
local ElevatorDir = ParentDir.Parent
|
||||
local ElevatorsDir = ElevatorDir.Parent.Parent
|
||||
local ElevatorsDir = ElevatorDir.Parent
|
||||
local MainDir = ElevatorsDir.Parent
|
||||
|
||||
local StorageService = game:GetService("ReplicatedStorage")
|
||||
@@ -1,7 +1,7 @@
|
||||
--!optimize 2
|
||||
--!strict
|
||||
|
||||
local Elevators = script.Parent
|
||||
local Elevators = script.Parent.Parent.Parent
|
||||
local Main = Elevators.Parent
|
||||
|
||||
local Storage = game:GetService("ReplicatedStorage")
|
||||
@@ -2,17 +2,16 @@
|
||||
--!strict
|
||||
|
||||
local ParentDir = script.Parent
|
||||
local MapDir = ParentDir.Parent
|
||||
local ElevatorDir = MapDir.Parent
|
||||
local ElevatorDir = ParentDir.Parent
|
||||
local MainDir = ElevatorDir.Parent
|
||||
local TagsModule = MainDir:WaitForChild("Map"):WaitForChild("Load"):WaitForChild("Tags")
|
||||
|
||||
local StorageService = game:GetService("ReplicatedStorage")
|
||||
|
||||
local ButtonManager = require(script:WaitForChild("Manager"))
|
||||
local Enums = require(StorageService:WaitForChild("Enums"))
|
||||
local ButtonTags = require(TagsModule:WaitForChild("Buttons"))
|
||||
local Tags = require(TagsModule)
|
||||
local ButtonManager = require(ElevatorDir:WaitForChild("ButtonManager"))
|
||||
|
||||
type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor))
|
||||
type Impl_Constructor = {
|
||||
@@ -2,7 +2,7 @@
|
||||
--!strict
|
||||
|
||||
local ParentDir = script.Parent
|
||||
local ElevatorsDir = ParentDir.Parent.Parent
|
||||
local ElevatorsDir = ParentDir.Parent
|
||||
local MainDir = ElevatorsDir.Parent
|
||||
|
||||
local Storage = game:GetService("ReplicatedStorage")
|
||||
@@ -5,7 +5,7 @@ local ElevatorDir = script.Parent
|
||||
local MainDir = ElevatorDir.Parent
|
||||
local LoadDir = MainDir:WaitForChild("Load")
|
||||
|
||||
local Storage: ReplicatedStorage = game:GetService("ReplicatedStorage")
|
||||
local Storage = game:GetService("ReplicatedStorage")
|
||||
local Tween = require(Storage:WaitForChild("Tween"))
|
||||
local Tags = require(LoadDir:WaitForChild("Tags"))
|
||||
local Enums = require(Storage:WaitForChild("Enums"))
|
||||
@@ -21,11 +21,11 @@ type Impl_Constructor = {
|
||||
constructor: Constructor_Fun,
|
||||
Get: (Tags: Tags.TagsConstructor, Model: Enums.ElevatorValues) -> Tags.Lanterns,
|
||||
--Class functions
|
||||
Activate: (self: ClassConstructor, EnabledState: boolean, IsDirectionLantern: boolean, Lantern: Tags.Lantern, Chime: boolean) -> (),
|
||||
DirectionUp: (self: ClassConstructor, Enabled: boolean) -> (),
|
||||
Activate: (self: ClassConstructor, EnabledState: boolean, IsDirectionLantern: boolean, Lantern: Tags.Lantern, Chime: boolean) -> (),
|
||||
DirectionUp: (self: ClassConstructor, Enabled: boolean) -> (),
|
||||
DirectionDown: (self: ClassConstructor, Enabled: boolean) -> (),
|
||||
Toggle: (self: ClassConstructor, Enabled: boolean, Floor: number) -> (),
|
||||
Reset: (self: ClassConstructor, ExcludeFloor: number?) -> ()
|
||||
Toggle: (self: ClassConstructor, Enabled: boolean, Floor: number) -> (),
|
||||
Reset: (self: ClassConstructor, ExcludeFloor: number?) -> ()
|
||||
} & Impl_Static_Props
|
||||
|
||||
type Impl_Static_Props = {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
--!strict
|
||||
|
||||
type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor))
|
||||
|
||||
type Impl_Constructor = {
|
||||
__index: Impl_Constructor,
|
||||
constructor: Constructor_Fun,
|
||||
@@ -11,7 +10,6 @@ type Impl_Constructor = {
|
||||
}
|
||||
|
||||
type Constructor_Fun = (CabRopesObject: BasePart, PulleyRopesObject: BasePart) -> ClassConstructor
|
||||
|
||||
type Constructor_Return_Props = {
|
||||
CabRopesObject: BasePart,
|
||||
PulleyRopesObject: BasePart,
|
||||
Reference in New Issue
Block a user