Skip to content

Commit

Permalink
style: Fix styling issues and linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Quenty committed Feb 18, 2023
1 parent 2f49c88 commit 91a8e56
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 94 deletions.
3 changes: 3 additions & 0 deletions src/guivisiblemanager/src/Client/GuiVisibleManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ end

--[=[
Returns whether the Gui is visible.
@return boolean
]=]
function GuiVisibleManager:IsVisible()
Expand Down Expand Up @@ -85,6 +86,8 @@ end
--[=[
Creates a handle that will force the gui to be rendered. Clean up the task
to stop the showing.
@param doNotAnimate boolean | nil
@return MaidTask
]=]
function GuiVisibleManager:CreateShowHandle(doNotAnimate)
Expand Down
65 changes: 62 additions & 3 deletions src/kinematics/src/Shared/Kinematics.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
--[=[
Basic kinematics calculator that can be used like a spring.
Basic kinematics calculator that can be used like a spring. See [Spring] also.
@class Kinematics
]=]

Expand Down Expand Up @@ -32,7 +33,7 @@ function Kinematics.new(initial, clock)
rawset(self, "_position0", initial)
rawset(self, "_velocity0", 0*initial)
rawset(self, "_acceleration", 0*initial)
rawset(self, "_speed", 0)
rawset(self, "_speed", 1)
rawset(self, "_time0", self._clock())

return self
Expand Down Expand Up @@ -61,7 +62,9 @@ function Kinematics:TimeSkip(delta)
end

--[=[
Sets data from some external source
Sets data from some external source all at once.
This is useful for synchronizing the network.
@param startTime number
@param position0 T
@param velocity0 T
Expand All @@ -74,6 +77,62 @@ function Kinematics:SetData(startTime, position0, velocity0, acceleration)
rawset(self, "_acceleration", acceleration)
end

--[=[
Gets and sets the current position of the Kinematics
@prop Position T
@within Kinematics
]=]

--[=[
Gets and sets the current velocity of the Kinematics
@prop Velocity T
@within Kinematics
]=]

--[=[
Gets and sets the acceleration.
@prop Acceleration T
@within Kinematics
]=]

--[=[
Gets and sets the start time.
@prop StartTime T
@within Kinematics
]=]

--[=[
Gets and set the start position
@prop StartPosition T
@within Kinematics
]=]

--[=[
Sets the start velocity
@prop StartVelocity T
@within Kinematics
]=]

--[=[
Sets the playback speed
@prop Speed number
@within Kinematics
]=]

--[=[
Returns how old the kinematics is
@prop Age number
@readonly
@within Kinematics
]=]

--[=[
The current clock object to syncronize the kienmatics against.
@prop Clock () -> number
@within Kinematics
]=]

function Kinematics:__index(index)
local now = self._clock()

Expand Down
2 changes: 1 addition & 1 deletion src/raycaster/src/Shared/RaycastUtils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local RaycastUtils = {}
]=]
function RaycastUtils.raycastSingleExit(origin, direction, part)
local params = RaycastParams.new()
params.FilterType = Enum.RaycastFilterType.Whitelist
params.FilterType = Enum.RaycastFilterType.Include
params.FilterDescendantsInstances = {part}

local resultFinal = Workspace:Raycast(origin + direction, -direction, params)
Expand Down
1 change: 1 addition & 0 deletions src/tie/src/Shared/Definition/TieDefinition.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local Observable = require("Observable")
local Rx = require("Rx")
local RxBrioUtils = require("RxBrioUtils")
local RxInstanceUtils = require("RxInstanceUtils")
local RxStateStackUtils = require("RxStateStackUtils")
local String = require("String")
local Symbol = require("Symbol")
local Table = require("Table")
Expand Down
24 changes: 12 additions & 12 deletions tools/cli-output-helpers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91a8e56

Please sign in to comment.