Further unnecessary definition removal from defs.d.lua file, and other formatting improvements
This commit is contained in:
parent
2b17f25fca
commit
51d5f944e5
|
|
@ -161,7 +161,8 @@ return function(IsServer: boolean)
|
||||||
|
|
||||||
-- debug.profileend()
|
-- debug.profileend()
|
||||||
end)
|
end)
|
||||||
else
|
return
|
||||||
|
end
|
||||||
Remote.OnServerEvent:connect(
|
Remote.OnServerEvent:connect(
|
||||||
function(Player, SingleFire, MultipleFire, IncomingCall)
|
function(Player, SingleFire, MultipleFire, IncomingCall)
|
||||||
-- debug.profilebegin "Red.Listen.Incoming"
|
-- debug.profilebegin "Red.Listen.Incoming"
|
||||||
|
|
@ -317,7 +318,6 @@ return function(IsServer: boolean)
|
||||||
-- debug.profileend()
|
-- debug.profileend()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
function Event.AddQueue(Queue: { any }, Call: { any })
|
function Event.AddQueue(Queue: { any }, Call: { any })
|
||||||
local Length = #Call
|
local Length = #Call
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ return function()
|
||||||
end, function()
|
end, function()
|
||||||
for _, Item in ipairs(Bin) do
|
for _, Item in ipairs(Bin) do
|
||||||
if typeof(Item) == "Instance" then
|
if typeof(Item) == "Instance" then
|
||||||
Item:Destroy()
|
(Item :: Instance):Destroy()
|
||||||
elseif typeof(Item) == "RBXScriptConnection" then
|
elseif typeof(Item) == "RBXScriptConnection" then
|
||||||
Item:disconnect()
|
(Item :: RBXScriptConnection):disconnect()
|
||||||
elseif typeof(Item) == "function" then
|
elseif typeof(Item) == "function" then
|
||||||
Spawn(Item)
|
Spawn(Item :: () -> ...any)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,12 @@ Clock.new = Clock.Clock
|
||||||
|
|
||||||
function Clock.Pause(self: Clock)
|
function Clock.Pause(self: Clock)
|
||||||
if self.Connection then
|
if self.Connection then
|
||||||
self.Connection:Disconnect()
|
self.Connection:disconnect()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Clock.Resume(self: Clock)
|
function Clock.Resume(self: Clock)
|
||||||
if self.Connection.Connected then
|
if self.Connection.connected then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
--!strict
|
--!strict
|
||||||
-- A basic polyfill for the typeof function
|
-- A basic polyfill for the typeof function
|
||||||
|
|
||||||
return function(value)
|
return function(value: any): string
|
||||||
local basicType = type(value)
|
local basicType = type(value)
|
||||||
|
|
||||||
if
|
if
|
||||||
|
|
|
||||||
1374
defs.d.lua
1374
defs.d.lua
File diff suppressed because one or more lines are too long
|
|
@ -52,7 +52,7 @@ end)
|
||||||
-- end)
|
-- end)
|
||||||
ScriptContext.ScriptsDisabled = true
|
ScriptContext.ScriptsDisabled = true
|
||||||
|
|
||||||
-- game:SetPlaceID(nil, false)
|
-- game:SetPlaceId(nil, false)
|
||||||
ChangeHistoryService:SetEnabled(false)
|
ChangeHistoryService:SetEnabled(false)
|
||||||
|
|
||||||
if url ~= nil then
|
if url ~= nil then
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ local Visit = game:GetService "Visit"
|
||||||
local player, connectionFailed
|
local player, connectionFailed
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
game:SetPlaceID(_PLACE_ID, false)
|
game:SetPlaceId(_PLACE_ID, false)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- if we are on a touch device, no blocking http calls allowed! This can cause a crash on iOS
|
-- if we are on a touch device, no blocking http calls allowed! This can cause a crash on iOS
|
||||||
|
|
@ -22,9 +22,6 @@ settings()["Game Options"].CollisionSoundEnabled = true
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Rendering.EnableFRM = true
|
settings().Rendering.EnableFRM = true
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
|
||||||
settings().Physics.Is30FpsThrottleEnabled = false
|
|
||||||
end)
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings()["Task Scheduler"].PriorityMethod =
|
settings()["Task Scheduler"].PriorityMethod =
|
||||||
Enum.PriorityMethod.AccumulatedError
|
Enum.PriorityMethod.AccumulatedError
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ local player
|
||||||
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
|
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetPlaceID(_PLACE_ID)
|
game:SetPlaceId(_PLACE_ID)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local message = Instance.new "Message"
|
local message = Instance.new "Message"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue