mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
Complete more of the rewrite and restructure
This commit is contained in:
@@ -123,12 +123,12 @@ local function Mover(ElevatorBoxModel: UnionOperation, Responsiveness: number, M
|
||||
end
|
||||
|
||||
function Elevator.constructor(ElevatorBoxModel, ElevatorConfigurationTable, FloorLevelingPositions)
|
||||
print(`🛗 [{ElevatorConfigurationTable.Name}]: Initialized and ready`)
|
||||
|
||||
local _BoxAttachment,
|
||||
BoxAlignPosition,
|
||||
_BoxAlignOrientation = Mover(ElevatorBoxModel, ElevatorConfigurationTable.Responsiveness, ElevatorConfigurationTable.MaxVelocity)
|
||||
|
||||
local RelayAlgorithmConstructor = RelayAlgorithm.constructor(BoxAlignPosition)
|
||||
|
||||
local Events = {
|
||||
CabProgression = Instance.new("BindableEvent") :: BindableEvent,
|
||||
CabTraveling = Instance.new("BindableEvent") :: BindableEvent,
|
||||
@@ -150,10 +150,11 @@ function Elevator.constructor(ElevatorBoxModel, ElevatorConfigurationTable, Floo
|
||||
Attributes.GoingUp.Value = false
|
||||
Attributes.Goal.Value = 1
|
||||
|
||||
return setmetatable({
|
||||
RelayAlgorithm = RelayAlgorithm.constructor(BoxAlignPosition),
|
||||
FloorLevelingPositions = FloorLevelingPositions,
|
||||
print(`🛗 [{ElevatorConfigurationTable.Name}]: Initialized and ready`)
|
||||
|
||||
return setmetatable({
|
||||
RelayAlgorithm = RelayAlgorithmConstructor,
|
||||
FloorLevelingPositions = FloorLevelingPositions,
|
||||
Elevator = {
|
||||
BoxModel = ElevatorBoxModel,
|
||||
AlignPosition = BoxAlignPosition,
|
||||
|
||||
Reference in New Issue
Block a user