This commit is contained in:
2024-09-13 20:53:15 -04:00
parent 763cac4501
commit 577c107d75
10 changed files with 19 additions and 23 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,2 @@
.obsidian .obsidian
sourcemap.json
.zed .zed

File diff suppressed because one or more lines are too long

View File

@@ -7,13 +7,13 @@ local MainDir = ElevatorsDir.Parent
local ElevatorSystem = ElevatorsDir:WaitForChild("System") local ElevatorSystem = ElevatorsDir:WaitForChild("System")
local ArrowLanterns = require(ElevatorSystem:WaitForChild("Lanterns"):WaitForChild("Arrows"))
local ButtonEvents = require(script:WaitForChild("Buttons"))
local InitElevator = require(ElevatorSystem) local InitElevator = require(ElevatorSystem)
local Doors = require(ParentDir:WaitForChild("Doors")) local ArrowLanterns = require(ElevatorSystem:WaitForChild("Lanterns"):WaitForChild("Arrows"))
local Buttons = require(ParentDir:WaitForChild("Buttons")) 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 MovingObjects = require(ParentDir:WaitForChild("MovingObjects"))
local TractionRopes = require(ParentDir:WaitForChild("TractionRopes"))
local ElevatorTypes = require(MainDir:WaitForChild("Types"):WaitForChild("Elevator")) local ElevatorTypes = require(MainDir:WaitForChild("Types"):WaitForChild("Elevator"))
type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor)) type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor))

View File

@@ -11,13 +11,13 @@ local ElevatorSystem = ElevatorsDir:WaitForChild("System")
local InitElevator = require(ElevatorSystem) local InitElevator = require(ElevatorSystem)
local ArrowLantern = require(ElevatorSystem:WaitForChild("Lanterns"):WaitForChild("Arrows")) 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 Events = require(script:WaitForChild("Events"))
local Config = require(script:WaitForChild("Config")) local Config = require(script:WaitForChild("Config"))
local Buttons = require(script:WaitForChild("Buttons"))
local Leveling = require(script:WaitForChild("Leveling")) local Leveling = require(script:WaitForChild("Leveling"))
local MovingObjects = require(script:WaitForChild("MovingObjects")) 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")) local TagsModule = require(MainDir:WaitForChild("Map"):WaitForChild("Load"):WaitForChild("Tags"))
return function(TagsConstructor: TagsModule.TagsConstructor, ButtonTags: TagsModule.ElevatorButtons, LanternTags: TagsModule.Lanterns, LandingDoorTags: TagsModule.LandingTags) return function(TagsConstructor: TagsModule.TagsConstructor, ButtonTags: TagsModule.ElevatorButtons, LanternTags: TagsModule.Lanterns, LandingDoorTags: TagsModule.LandingTags)

View File

@@ -3,7 +3,7 @@
local ParentDir = script.Parent local ParentDir = script.Parent
local ElevatorDir = ParentDir.Parent local ElevatorDir = ParentDir.Parent
local ElevatorsDir = ElevatorDir.Parent.Parent local ElevatorsDir = ElevatorDir.Parent
local MainDir = ElevatorsDir.Parent local MainDir = ElevatorsDir.Parent
local StorageService = game:GetService("ReplicatedStorage") local StorageService = game:GetService("ReplicatedStorage")

View File

@@ -1,7 +1,7 @@
--!optimize 2 --!optimize 2
--!strict --!strict
local Elevators = script.Parent local Elevators = script.Parent.Parent.Parent
local Main = Elevators.Parent local Main = Elevators.Parent
local Storage = game:GetService("ReplicatedStorage") local Storage = game:GetService("ReplicatedStorage")

View File

@@ -2,17 +2,16 @@
--!strict --!strict
local ParentDir = script.Parent local ParentDir = script.Parent
local MapDir = ParentDir.Parent local ElevatorDir = ParentDir.Parent
local ElevatorDir = MapDir.Parent
local MainDir = ElevatorDir.Parent local MainDir = ElevatorDir.Parent
local TagsModule = MainDir:WaitForChild("Map"):WaitForChild("Load"):WaitForChild("Tags") local TagsModule = MainDir:WaitForChild("Map"):WaitForChild("Load"):WaitForChild("Tags")
local StorageService = game:GetService("ReplicatedStorage") local StorageService = game:GetService("ReplicatedStorage")
local ButtonManager = require(script:WaitForChild("Manager"))
local Enums = require(StorageService:WaitForChild("Enums")) local Enums = require(StorageService:WaitForChild("Enums"))
local ButtonTags = require(TagsModule:WaitForChild("Buttons")) local ButtonTags = require(TagsModule:WaitForChild("Buttons"))
local Tags = require(TagsModule) local Tags = require(TagsModule)
local ButtonManager = require(ElevatorDir:WaitForChild("ButtonManager"))
type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor)) type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor))
type Impl_Constructor = { type Impl_Constructor = {

View File

@@ -2,7 +2,7 @@
--!strict --!strict
local ParentDir = script.Parent local ParentDir = script.Parent
local ElevatorsDir = ParentDir.Parent.Parent local ElevatorsDir = ParentDir.Parent
local MainDir = ElevatorsDir.Parent local MainDir = ElevatorsDir.Parent
local Storage = game:GetService("ReplicatedStorage") local Storage = game:GetService("ReplicatedStorage")

View File

@@ -5,7 +5,7 @@ local ElevatorDir = script.Parent
local MainDir = ElevatorDir.Parent local MainDir = ElevatorDir.Parent
local LoadDir = MainDir:WaitForChild("Load") local LoadDir = MainDir:WaitForChild("Load")
local Storage: ReplicatedStorage = game:GetService("ReplicatedStorage") local Storage = game:GetService("ReplicatedStorage")
local Tween = require(Storage:WaitForChild("Tween")) local Tween = require(Storage:WaitForChild("Tween"))
local Tags = require(LoadDir:WaitForChild("Tags")) local Tags = require(LoadDir:WaitForChild("Tags"))
local Enums = require(Storage:WaitForChild("Enums")) local Enums = require(Storage:WaitForChild("Enums"))

View File

@@ -2,7 +2,6 @@
--!strict --!strict
type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor)) type ClassConstructor = typeof(setmetatable({} :: Constructor_Return_Props, {} :: Impl_Constructor))
type Impl_Constructor = { type Impl_Constructor = {
__index: Impl_Constructor, __index: Impl_Constructor,
constructor: Constructor_Fun, constructor: Constructor_Fun,
@@ -11,7 +10,6 @@ type Impl_Constructor = {
} }
type Constructor_Fun = (CabRopesObject: BasePart, PulleyRopesObject: BasePart) -> ClassConstructor type Constructor_Fun = (CabRopesObject: BasePart, PulleyRopesObject: BasePart) -> ClassConstructor
type Constructor_Return_Props = { type Constructor_Return_Props = {
CabRopesObject: BasePart, CabRopesObject: BasePart,
PulleyRopesObject: BasePart, PulleyRopesObject: BasePart,