repo stringclasses 254
values | file_path stringlengths 29 241 | code stringlengths 100 233k | tokens int64 14 69.4k |
|---|---|---|---|
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Component.luau | -- Author: iGottic
-- Imports
local Scope = require(script.Parent.Parent.Memory.Scope)
local Symbol = require(script.Parent.Parent.Parent.Modules.Symbol)
-- Types extended
export type Component = ({[any] : any}) -> (Scope.ScopeInstance?, {[string] : any}) -> any
local function Component(ComponentModule : {[any] : an... | 339 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Destroyed.luau | -- Author: iGottic
local Destroyed = {}
-- Types
export type Destroyed = (Object : Instance, Callback : () -> nil) -> nil
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("Destroyed")
function Destroyed:__call(Object :... | 165 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/EventSequence.luau | -- Author: iGottic
local EventSequence = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
local Trove = require(Modules.Trove)
local UpdateSignals = require(Modules.UpdateSignals)
-- Types extended
export type SequenceKeyframe = {number | () -> nil}
export typ... | 749 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/FollowAttribute.luau | -- Author: iGottic
local FollowAttribute = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("FollowAttribute")
-- Types Extended
export type FollowAttribute = (AttributeName : str... | 265 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/FollowProperty.luau | -- Author: iGottic
local FollowProperty = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("FollowProperty")
-- Types Extended
export type FollowProperty = (PropertyName : string)... | 256 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Lifetime.luau | -- Author: iGottic
local Lifetime = {}
-- Types
export type Lifetime = (Object : Instance, CleanupTime : number) -> nil
-- Services
local DebrisService = game:GetService("Debris")
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = ... | 205 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/New.luau | -- Author: iGottic
local New = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
local CreateDeepTraceback = require(Modules.CreateDeepTraceback)
local Scope = require(script.Parent.Parent.Memory.Scope)
local Children = require(script.Parent.Children)
-- Types e... | 571 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Tags.luau | -- Author: iGottic
local Tags = {}
-- Types
export type Tags = (Object : Instance, AddedTags : {string}) -> nil
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("Tags")
function Tags:__call(Object : Instance, AddedTags... | 174 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Memory/Scope.luau | -- Author: iGottic
local Scope = {}
-- Imports
local Constructors = script.Parent.Parent
local Modules = Constructors.Parent.Modules
local States = Constructors.States
local Trove = require(Modules.Trove)
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
local CreateDeepTraceback = require(M... | 1,603 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Animation/Spring.luau | -- Author: iGottic
local Spring = {}
-- Constants
local EPSILON = 0.001
-- Imports
local Constructors = script.Parent.Parent.Parent
local Modules = Constructors.Parent.Modules
local GetValue = require(Constructors.Utilities.GetValue)
local StateManager = require(Modules.StateManager)
local ValuePacker = require(Modu... | 2,012 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Animation/Tween.luau | -- Author: iGottic
local Tween = {}
-- Constants
local EPSILON = 0.001
-- Services
local TweenService = game:GetService("TweenService")
-- Imports
local Constructors = script.Parent.Parent.Parent
local Modules = Constructors.Parent.Modules
local GetValue = require(Constructors.Utilities.GetValue)
local StateManager... | 1,168 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Computed.luau | -- Author: iGottic
local Computed = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local StateManager = require(Modules.StateManager)
local Trove = require(Modules.Trove)
local Signal = require(Modules.Signal)
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
local Value =... | 792 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/ForPairs.luau | -- Author: iGottic
local ForPairs = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
local CreateDeepTraceback = require(Modules.CreateDeepTraceback)
local Computed = require(script.Parent.Computed)
local Value = require(scri... | 531 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Rendered.luau | -- Author: iGottic
local Rendered = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local StateManager = require(Modules.StateManager)
local Trove = require(Modules.Trove)
local Signal = require(Modules.Signal)
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables... | 477 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Value.luau | -- Author: iGottic
local Value = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local StateManager = require(Modules.StateManager)
local Trove = require(Modules.Trove)
local Signal = require(Modules.Signal)
local Types = require(Modules.Types)
local IsValueChanged = require(Modules.IsValueChanged)
... | 859 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/GetValue.luau | -- Author: iGottic
local GetValue = {}
-- Types
export type GetValue = (State : any?) -> any?
-- Imports
local IsState = require(script.Parent.IsState)
function GetValue:__call(State : any?) : any?
-- Nothing exists? No problem.
if State == nil then
return nil
end
-- Is it a state? Return t... | 170 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/Inspect.luau | -- Author: iGottic
local Inspect = {}
-- Types
export type Inspect = (Object : any, DebugName : string) -> RBXScriptConnection
function Inspect:__call(Object : any, DebugName : string)
if not DebugName then
error("Expected DebugName, got nil")
end
return (Object.Changed :: RBXScriptSignal):Conne... | 206 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/IsComponent.luau | -- Author: iGottic
local IsComponent = {}
-- Types
export type IsComponent = (CheckedValue : any?) -> boolean
function IsComponent:__call(CheckedValue : any?) : boolean
if typeof(CheckedValue) ~= "table" then
return false -- Not a component since it's not a table
end
if CheckedValue.__SEAM_COMPO... | 167 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/IsState.luau | -- Author: iGottic
local IsState = {}
-- Types
export type IsState = (CheckedValue : any?) -> boolean
-- Constants
local RECOGNIZED_STATE_SYMBOLS = {"Spring", "Tween", "ComputedInstance", "RenderedInstance", "Value"}
function IsState:__call(CheckedValue : any?) : boolean
if typeof(CheckedValue) ~= "table" then
... | 253 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/LockValue.luau | -- Author: iGottic
local LockValue = {}
-- Imports
local Value = require(script.Parent.Parent.States.Value)
-- Types
export type LockValue = (LockedValue : Value.ValueInstance<any>) -> nil
function LockValue:__call(LockedValue : Value.ValueInstance<any>) : nil
if typeof(LockedValue) ~= "table" or not LockedValu... | 177 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/SetValue.luau | -- Author: iGottic
local SetValue = {}
-- Types
export type SetValue = (State : any?, NewValue : any?) -> any?
function SetValue:__call(State : any?, NewValue : any?) : any?
if State == nil then
return NewValue
end
if typeof(State) == "table" and State.Value ~= nil then
State.Value = New... | 146 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/CreateDeepTraceback.luau | -- Author: iGottic
-- Constants
local DEPTH = 10
return function()
local Traceback = ""
for Index = 1, DEPTH do
local ThisTraceback = debug.traceback(nil, Index + 1)
if ThisTraceback:len() == 0 then
break
end
Traceback ..= ThisTraceback .. "\n"
end
return Traceback
end
| 94 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/IsValueChanged.luau | -- Author: iGottic
return function(OldValue : any, NewValue : any) : boolean
if typeof(OldValue) ~= typeof(NewValue) then
return true
end
return OldValue ~= NewValue
end | 54 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Signal.luau | -- -----------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra ... | 1,793 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/StateManager.luau | -- Author: iGottic
local StateManager = {}
-- Imports
local Trove = require(script.Parent.Trove)
local IsValueChanged = require(script.Parent.IsValueChanged)
local UpdateSignals = require(script.Parent.UpdateSignals)
local CreateDeepTraceback = require(script.Parent.CreateDeepTraceback)
local function GetObjectType(... | 534 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Symbol.luau | -- Author: iGottic
local Symbol = {}
-- Types
export type Symbol = typeof(newproxy(true))
function Symbol.new(Name : string)
local self = newproxy(true)
getmetatable(self).__tostring = function()
return Name
end
return self
end
return Symbol | 64 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Trove.luau | --!strict
local RunService = game:GetService("RunService")
export type Trove = {
Extend: (self: Trove) -> Trove,
Clone: <T>(self: Trove, instance: T & Instance) -> T,
Construct: <T, A...>(self: Trove, class: Constructable<T, A...>, A...) -> T,
Connect: (
self: Trove,
signal: SignalLike | SignalLikeMetatable |... | 2,633 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Types.luau | -- Author: iGottic
export type BaseState<T> = {
Value : T,
}
export type Child = Instance | BaseState<any> | {[unknown] : Child}
return nil | 41 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/UpdateSignals.luau | -- Author: iGottic
local UpdateSignals = {}
-- Types
type UpdateSignals = {
OnFrameUpdate : RBXScriptSignal,
OnFramePreUpdate : RBXScriptSignal,
}
-- Services
local RunService = game:GetService("RunService")
if RunService:IsClient() then
UpdateSignals.OnFrameUpdate = RunService.RenderStepped
UpdateS... | 143 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/ValuePacker/init.luau | -- Author: iGottic
-- Based on UnpackType and PackType from Elttob
local ValuePacker = {}
-- Types
type UnpackedValue = {[number]: number}
-- Imports
local Oklab = require(script.Oklab) -- We use Oklab color space to make animating colors look more natural
-- Variables
local Converter : {[string] : {Pack : (Unpacke... | 1,714 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/init.luau | --[=[
Documentation: https://seam.igottic.com/
@class Seam
]=]
-- Services
local RunService = game:GetService("RunService")
-- Imports
-- Note: I opt for WaitForChild to load stuff; this helps prevent edge case errors where children don't load in time, particularly when loading from ReplicatedStorage in a sc... | 2,464 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Client/Observers/AntiGravity.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local RunService = game:GetService('RunService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local SharedZones = require(ReplicatedStorage.Common.Zones)
local localPlayer = game:GetS... | 278 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Client/Observers/CameraEffects.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local Lighting = game:GetService('Lighting')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedZones = require(ReplicatedStorage.Common.Zones)
local DEFAULTS = {
Brightness = Lighting.Brightness,
Ambient = Lighting.Ambient,
FogEnd = Li... | 420 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Client/Observers/Disco.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local RunService = game:GetService('RunService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local discoPart = workspace:WaitForChild('DiscoPart')
local defaultColor = discoPart.Colo... | 277 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Client/Observers/SpeedBoost.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local TweenService = game:GetService('TweenService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local SharedZones = require(ReplicatedStorage.Common.Zones)
local camera = workspace.... | 382 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Client/Runtime.client.luau | while not game:IsLoaded() do
game.Loaded:Wait()
end
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local QuickZone = require(ReplicatedStorage.QuickZone)
QuickZone:configure({
enabled = true,
autoSyncRate = 30,
frameBudget = 1,
})
for _, instance in script.Parent.Observers:GetChildren() do
if in... | 98 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Common/Groups.luau | local RunService = game:GetService('RunService')
local QuickZone = require(game.ReplicatedStorage.QuickZone)
local Group = QuickZone.Group
--[=[
Put groups here only if they need to be accessed by multiple scripts.
(e.g., The "Players" group is used by Hazards, SafeZones, and Disco).
]=]
local Groups = {
Players =... | 106 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Server/Observers/Hazards.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local RunService = game:GetService('RunService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local SharedZones = require(ReplicatedStorage.Common.Zones)
local hazardObserver = QuickZ... | 262 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Server/Observers/SafeZone.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local safeZonePart = workspace:WaitForChild('SafeZone')
local safeZone = QuickZone.Zone.fromPart(safeZonePart)
local safeObserver = Quick... | 226 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/examples/Server/Runtime.server.luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local QuickZone = require(ReplicatedStorage.QuickZone)
QuickZone:configure({
enabled = true,
autoSyncRate = 30,
frameBudget = 1,
})
for _, instance in script.Parent.Observers:GetChildren() do
if instance:IsA('ModuleScript') then
require(instance)
e... | 82 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Classes/Group.luau | --!strict
local CollectionService = game:GetService('CollectionService')
local Players = game:GetService('Players')
local RunService = game:GetService('RunService')
local Types = require(script.Parent.Parent.Types)
local Config = require(script.Parent.Parent.Config)
local State = require(script.Parent.Parent.Core.Sta... | 4,908 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Classes/Observer.luau | --!strict
local Players = game:GetService('Players')
local RunService = game:GetService('RunService')
local Config = require(script.Parent.Parent.Config)
local State = require(script.Parent.Parent.Core.State)
local Types = require(script.Parent.Parent.Types)
local Geometry = require(script.Parent.Parent.Utils.Geometr... | 10,023 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Config.luau | --!strict
local Config = {}
-- Static enums used to determine how to read an entity's position
Config.Strategy = {
POS = 1,
PRIM = 2,
WORLD = 3,
CFRAME = 4,
TRANSFORM = 5,
PIVOT = 6,
}
Config.Group = {
-- Entities are automatically cleaned up for that group if destroyed
autoClean = true,
}
Config.Scheduler ... | 372 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Core/Scheduler.luau | --!native
--!optimize 2
--!strict
local RunService = game:GetService('RunService')
local Config = require(script.Parent.Parent.Config)
local Types = require(script.Parent.Parent.Types)
local Geometry = require(script.Parent.Parent.Utils.Geometry)
local LinearBVH = require(script.Parent.Parent.Utils.LinearBVH)
local L... | 3,752 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Core/State.luau | --!strict
local Types = require(script.Parent.Parent.Types)
local State = {
nextZoneId = 1,
nextObserverId = 1,
nextGroupId = 1,
staticCFrames = {} :: { [number]: CFrame },
staticHalfSizes = {} :: { [number]: Vector3 },
staticTypes = {} :: { [number]: number },
dynamicCFrames = {} :: { [number]: CFrame },
d... | 634 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Types.luau | --!strict
--[=[
@type ShapeType "Block" | "Ball" | "Cylinder" | "Wedge" | "CornerWedge"
@within QuickZone
The geometric shape of a Zone.
]=]
export type ShapeType = 'Block' | 'Ball' | 'Cylinder' | 'Wedge' | 'CornerWedge'
--[=[
@interface EntityTable
@within QuickZone
.Position Vector3?
.WorldPosition Vector3?
... | 3,238 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Utils/Geometry.luau | --!native
--!optimize 2
--!strict
local BLOCK_SHAPE_VALUE = Enum.PartType.Block.Value
local BALL_SHAPE_VALUE = Enum.PartType.Ball.Value
local CYLINDER_SHAPE_VALUE = Enum.PartType.Cylinder.Value
local WEDGE_SHAPE_VALUE = Enum.PartType.Wedge.Value
local CORNER_WEDGE_SHAPE_VALUE = Enum.PartType.CornerWedge.Value
local M... | 1,316 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Utils/LinearBVH.luau | --!native
--!optimize 2
--!strict
local Geometry = require(script.Parent.Geometry)
local Types = require(script.Parent.Parent.Types)
local HUGE_VECTOR = Vector3.one * math.huge
local NEGATIVE_HUGE_VECTOR = -HUGE_VECTOR
local unionBounds = Geometry.unionBounds
local getObjectBounds = Geometry.getObjectBounds
local ge... | 1,410 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/Utils/Log.luau | --!strict
local Log = {}
local function formatLog(messageTemplate: string, trace: string?, ...: any): string
local messageText = string.format(messageTemplate, ...)
messageText = `[QuickZone] {messageText}`
local finalTrace = trace or debug.traceback('', 3)
if finalTrace ~= '' then
messageText ..= ` \n---- S... | 235 |
LDGerrits/QuickZone | LDGerrits-QuickZone-5920687/src/init.luau | --!strict
local RunService = game:GetService('RunService')
local Types = require(script.Types)
local Config = require(script.Config)
local Scheduler = require(script.Core.Scheduler)
local State = require(script.Core.State)
local Geometry = require(script.Utils.Geometry)
local LinearBVH = require(script.Utils.LinearBV... | 4,464 |
Steadyon/TweenServiceV2 | Steadyon-TweenServiceV2-6288881/ReplicatedTweening.luau | -- V.2.2
--[[Created by SteadyOn
THIS MODULE MUST BE IN REPLICATEDSTORAGE - YOU NEED TO REQUIRE THIS MODULE SOMEWHERE ON THE CLIENT:
require(game.ReplicatedStorage.ReplicatedTweening)
Documentation:
:Create(instance [Instance], TweenInfo [TweenInfo Object], PropertyTable [Table]) [Tween]
Parameters are exactly... | 3,385 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Build/Lib/Data/Template.luau | -- This codegen template *must* be 100% compatible with Lua 5.1x+, NOT just Luau
-- With that being said, this explains the weird cflow in some parts
return [[
-- ++++++++ WAX BUNDLED DATA BELOW ++++++++ --
-- Will be used later for getting flattened globals
local ImportGlobals
-- Holds direct closure data (defining... | 3,694 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Boolean.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class Boolean
The Boolean class is used to lift a constant type with the LBC_CONSTANT_BOOLEAN id (1)
]=]
local Boolean = {}
Boolean.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_BOOLEAN
Boolean.__index = Boolean
--[=[
@within B... | 184 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Closure.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class Closure
The Closure class is used to lift a constant type with the LBC_CONSTANT_CLOSURE id (6)
]=]
local Closure = {}
Closure.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_CLOSURE
Closure.__index = Closure
--[=[
@within C... | 186 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Import.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
local String = require(script.Parent.String)
--[=[
@class Import
The Import class is used to lift a constant type with the LBC_CONSTANT_IMPORT id (4)
]=]
local Import = {}
Import.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_IMPORT
Impo... | 221 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Nil.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class Nil
The Nil class is used to lift a constant type with the LBC_CONSTANT_NIL id (0)
]=]
local Nil = {}
Nil.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_NIL
Nil.__index = Nil
--[=[
@within Nil
The Nil class is used to li... | 173 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Number.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class Number
The Number class is used to lift a constant type with the LBC_CONSTANT_NUMBER id (2)
]=]
local Number = {}
Number.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_NUMBER
Number.__index = Number
--[=[
@within Number
... | 181 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/String.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class String
The String class is used to lift a constant type with the LBC_CONSTANT_STRING id (3)
]=]
local String = {}
String.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_STRING
String.__index = String
--[=[
@within String
... | 178 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Table.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class Table
The Table class is used to lift a constant type with the LBC_CONSTANT_TABLE id (5)
]=]
local Table = {}
Table.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_TABLE
Table.__index = Table
--[=[
@within Table
The Table... | 187 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Constants/Vector.luau | local LuauSpec = require(script.Parent.Parent.Parent.Luau.Spec)
--[=[
@class Vector
The Vector class is used to lift a constant type with the LBC_CONSTANT_VECTOR id (7)
]=]
local Vector = {}
Vector.__constant_type = LuauSpec.LuauBytecodeConstants.LBC_CONSTANT_VECTOR
Vector.__index = Vector
--[=[
@within Vector
... | 221 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Hexadecimal.luau | --[=[
@class Hexadecimal
The Hexadecimal class is used to represent an integer as a Hexadecimal
]=]
local Hexadecimal = {}
Hexadecimal.__index = Hexadecimal
--[=[
@within Hexadecimal
The Hexadecimal class is used to represent an integer as a Hexadecimal
@return Hexadecimal
]=]
function Hexadecimal.new(Number: ... | 155 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Instruction.luau | local Buffer = require(script.Parent.Parent.Utilities.Buffer)
local LuauSpec = require(script.Parent.Parent.Luau.Spec)
local Hexadecimal = require(script.Parent.Hexadecimal)
export type Context = {
LineDefined: number,
Pc: number
}
--[=[
@class Instruction
The Instruction class is used to lift a luau ins... | 500 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Classes/Upvalue.luau | --[=[
@class Upvalue
The Upvalue class is used to lift a luau Upvalue
]=]
local Upvalue = {}
Upvalue.__index = Upvalue
--[=[
@within Upvalue
The Upvalue class is used to lift a luau Upvalue
@param Bytecode Buffer.BufferReader
@return Upvalue
]=]
function Upvalue.new(Name: string): Upvalue
local self = setmet... | 129 |
ActualMasterOogway/Iridium | ActualMasterOogway-Iridium-d3f217f/Src/Deserializer.d.luau | export type Upvalue = {
ClassName: "Upvalue",
Name: string
}
export type VectorConstant = {
ClassName: "Vector",
X: number,
Y: number,
Z: number,
W: number
}
export type TableConstant = {
ClassName: "Table",
Value: { [number]: any }
}
export type StringConstant = {
ClassName: ... | 1,324 |
Perthys/chalk | Perthys-chalk-7de4206/src/main.luau | export type ChalkType = {
bold: ChalkType;
italic: ChalkType;
underline: ChalkType;
strikethrough: ChalkType;
uppercase: ChalkType;
smallcaps: ChalkType;
size: (size: number) -> ChalkType;
face: (face: string) -> ChalkType;
family: (family: string) -> ChalkType;
weight: (weight: string) -> ChalkType;
transp... | 2,042 |
devSparkle/Overture | devSparkle-Overture-cb7e0f1/src/Overture.luau | --!nonstrict
--// Initialization
local RunService = game:GetService("RunService")
local CollectionService = game:GetService("CollectionService")
--[=[
@class Overture
The core of Overture revolves around the management of libraries.
In Overture, a library is any ModuleScript which is tagged with the Collection... | 1,917 |
devSparkle/sentry-roblox | devSparkle-sentry-roblox-ae26c87/src/Defaults.luau | --!nocheck
--// Variables
local RunService = game:GetService("RunService")
local Module = {}
type Hint = {[string]: any}
type Filter<T> = (T, Hint) -> (T?)
--[=[
@within SDK
@interface Options
.DSN string? -- The DSN for the sentry project to send events to
.debug boolean? -- See [SDK.debug] (must press the "... | 1,315 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/GJK.lua |
local MAX_TRIES = 20
local ZERO3 = Vector3.new(0, 0, 0)
-- Class
local GJK = {}
GJK.__index = GJK
-- Private Functions
local function tripleProduct(a, b, c)
return b * c:Dot(a) - a * c:Dot(b)
end
local function containsOrigin(self, simplex, direction)
local a = simplex[#simplex]
local ao = -a
if (#simplex == 4) th... | 850 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/Supports.lua |
local ZERO = Vector3.new(0, 0, 0)
local RIGHT = Vector3.new(1, 0, 0)
--
local function rayPlane(p, v, s, n)
local r = p - s;
local t = -r:Dot(n) / v:Dot(n)
return p + t * v, t
end;
--
local Supports = {}
function Supports.PointCloud(set, direction)
local max, maxDot = set[1], set[1]:Dot(direction)
for i = 2, #set... | 358 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/Vertices.lua |
-- CONSTANTS
local PI2 = math.pi*2
local PHI = (1 + math.sqrt(5)) / 2
local RIGHT = Vector3.new(1, 0, 0)
local UP = Vector3.new(0, 1, 0)
local BACK = Vector3.new(0, 0, 1)
local LEFT = Vector3.new(-1, 0, 0)
local DOWN = Vector3.new(0, -1, 0)
local FORWARD = Vector3.new(0, 0, -1)
local CORNERS = {
Vector3.new... | 1,634 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/init.lua | -- TAKEN FROM https://www.roblox.com/library/3686163417/Rotated-Region3-GJK
-- PACKAGE UPDATED SINCE MAY 02, 2020 12:15:45 PM
--[[
This is a Rotated Region3 Class that behaves much the same as the standard Region3 class expect that it allows
for both rotated regions and also a varying array of shapes.
API:
Constructo... | 2,345 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/commify.luau | local function commify(self, number)
assert(type(number) == 'number', 'Attempt to commify a non-number value')
local formatted = tostring(number)
while true do
local newFormatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
formatted = newFormatted
if k == 0 then
break
end
end
return format... | 103 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/init.luau | local DEFAULT_SUFFIX_TABLE = {
"k",
"M",
"B",
"T",
"Qd",
"Qn",
"Sx",
"Sp",
"O",
"N",
"De",
"Ud",
"DD",
"tdD",
"QnD",
"SxD",
"SpD",
"OcD",
"NvD",
"VgN",
"UvG",
"DvG",
"TvG",
"QtV",
"QnV",
"SeV",
"SpG",
"OvG",
"NvG",
"TgN",
"UtG",
"DtG",
"TsTg",
"QtTg",
"QnTg",
"SsTg",
"SpTg",
"OcTg"... | 413 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/numberToString.luau | local function round(number, decimalPlaces, roundDown)
number = number * 10 ^ decimalPlaces
if roundDown then
return math.floor(number) / 10 ^ decimalPlaces
else
number = tonumber(string.format("%.14g", number))
-- cast to string and back to number to give some epsilon for floating point numbers
--[[ e.g.:
... | 568 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/numbersToSortedString.luau | -- Credits to Coreccii for this method
local hexToBin = {
["0"] = "0000",
["1"] = "0001",
["2"] = "0010",
["3"] = "0011",
["4"] = "0100",
["5"] = "0101",
["6"] = "0110",
["7"] = "0111",
["8"] = "1000",
["9"] = "1001",
["A"] = "1010",
["B"] = "1011",
["C"] = "1100",
["D"] = "1101",
["E"] = "1110",
["F"] ... | 900 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/runTests.story.luau | -- Disable ANSI colors from Jest
_G.NOCOLOR = true
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local runCLI = require(ReplicatedStorage.DevPackages.Jest).runCLI
local processServiceExists, ProcessService = pcall(function()
return ... | 266 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/setSetting.luau | local function setSetting(self, settingName, settingValue)
if not (settingName and settingValue ~= nil and type(settingName) == 'string') then
error('setSetting had invalid parameters.\nP1 - settingName: string\nP2 - settingValue: unknown', 2)
end
local realSetting = '_' .. settingName
if self[realSetting] ~= ni... | 173 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/stringToNumber.luau | local function stringToNumber(self, str)
if not (str and type(str) == 'string') then
error('stringToNumber had invalid parameters.\nP1 - string: string', 2)
end
local totalMagnitude = 1
for key, suffix in pairs(self._suffixTable) do
str = string.gsub(str, suffix, function()
totalMagnitude = totalMagnitude ... | 176 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/BaseMotor.lua | local RunService = game:GetService("RunService")
local Signal = require(script.Parent.Signal)
local noop = function() end
local BaseMotor = {}
BaseMotor.__index = BaseMotor
function BaseMotor.new()
return setmetatable({
_onStep = Signal.new(),
_onComplete = Signal.new()
}, BaseMotor)
end
function BaseMotor:o... | 223 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/GroupMotor.lua | local BaseMotor = require(script.Parent.BaseMotor)
local SingleMotor = require(script.Parent.SingleMotor)
local isMotor = require(script.Parent.isMotor)
local GroupMotor = setmetatable({}, BaseMotor)
GroupMotor.__index = GroupMotor
local function toMotor(value)
if isMotor(value) then
return value
end
local val... | 530 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/Instant.lua | local Instant = {}
Instant.__index = Instant
function Instant.new(targetValue)
return setmetatable({
_targetValue = targetValue
}, Instant)
end
function Instant:step()
return {
complete = true,
value = self._targetValue
}
end
return Instant | 61 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/Signal.lua | local Connection = {}
Connection.__index = Connection
function Connection.new(signal, handler)
return setmetatable({
signal = signal,
connected = true,
_handler = handler
}, Connection)
end
function Connection:disconnect()
if self.connected then
self.connected = false
for index, connection in pairs(self... | 240 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/SingleMotor.lua | local BaseMotor = require(script.Parent.BaseMotor)
local SingleMotor = setmetatable({}, BaseMotor)
SingleMotor.__index = SingleMotor
function SingleMotor.new(initialValue, shouldStartImplicitly)
assert(initialValue, "Missing argument #1: initialValue")
assert(typeof(initialValue) == "number", "initialValue must be ... | 287 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/init.lua | local Flipper = {
SingleMotor = require(script.SingleMotor),
GroupMotor = require(script.GroupMotor),
Instant = require(script.Instant),
Spring = require(script.Spring),
isMotor = require(script.isMotor)
}
return Flipper | 50 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/isMotor.lua | local function isMotor(value)
local motorType = tostring(value):match("^Motor%((.+)%)$")
if motorType then
return true, motorType
else
return false
end
end
return isMotor | 48 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Collection.lua | local Promise = require(script.Parent.Parent.Promise)
local t = require(script.Parent.Parent.t)
local Document = require(script.Parent.Document)
local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert
local getTime = require(script.Parent.getTime).getTime
local DOCUMENT_COOLDOWN = 7
local Colle... | 571 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Document.lua | local Promise = require(script.Parent.Parent.Promise)
local AccessLayer = require(script.Parent.Layers.AccessLayer)
local DocumentData = require(script.Parent.DocumentData)
local Error = require(script.Parent.Error)
local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert
local Document = {}
Docu... | 546 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/DocumentData.lua | local DocumentData = {}
DocumentData.__index = DocumentData
-- TODO: Backups
function DocumentData.new(options)
return setmetatable({
_lockSession = options.lockSession;
_readOnlyData = options.readOnlyData;
_collection = options.collection;
_currentData = nil;
_dataLoaded = false;
_closed = false;
}, D... | 336 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Error.lua | local makeEnum = require(script.Parent.makeEnum).makeEnum
local getTime = require(script.Parent.getTime).getTime
local Error = {
Kind = makeEnum("Quicksave.Error.Kind", {
"DataStoreError",
"CouldNotAcquireLock",
"LockConsistencyViolation",
"SchemaValidationFailed"
}),
}
Error.__index = Error
function Error.... | 446 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/AccessLayer/LockSession.lua | local MigrationLayer = require(script.Parent.Parent.MigrationLayer)
local Error = require(script.Parent.Parent.Parent.Error)
local Promise = require(script.Parent.Parent.Parent.Parent.Promise)
local getTime = require(script.Parent.Parent.Parent.getTime).getTime
local HttpService = game:GetService("HttpService")
local... | 1,093 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/AccessLayer/init.lua | local LockSession = require(script.LockSession)
local MigrationLayer = require(script.Parent.MigrationLayer)
local AccessLayer = {}
function AccessLayer.acquireLockSession(collection, key, migrations)
local lockSession = LockSession.new(collection, key, migrations)
return lockSession:lock()
end
function AccessLay... | 86 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/LZW.lua | local dictionary, length = {}, 0
for i = 32, 127 do
if i ~= 34 and i ~= 92 then
local c = string.char(i)
dictionary[c], dictionary[length] = length, c
length = length + 1
end
end
local escapemap = {}
for i = 1, 34 do
i = ({34, 92, 127})[i-31] or i
local c, e = string.char(i), string.char(i + 31)
escapemap[c... | 818 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/Schemes/compressed.lua | local LZW = require(script.Parent.Parent.LZW)
return {
["compressed/1"] = {
pack = function(value)
return LZW.compress(value)
end;
unpack = function(value)
return LZW.decompress(value);
end;
}
}
| 59 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/Schemes/raw.lua | return {
["raw/1"] = {
pack = function(value)
return value
end;
unpack = function(value)
return value;
end;
}
}
| 41 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/init.lua | local RetryLayer = require(script.Parent.RetryLayer)
local HttpService = game:GetService("HttpService")
local RawSchemes = require(script.Schemes.raw)
local CompressedSchemes = require(script.Schemes.compressed)
local MINIMUM_LENGTH_TO_COMPRESS = 1000
local DataLayer = {
schemes = {
["raw/1"] = RawSchemes["raw/1... | 329 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataStoreLayer.lua | local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService)
local DataStoreLayer = {
_dataStores = {};
}
function DataStoreLayer._getDataStore(collectionName)
if DataStoreLayer._dataStores[collectionName] == nil then
DataStoreLayer._dataStores[collectionName] = DataStoreService:... | 146 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/MigrationLayer.lua | local DataLayer = require(script.Parent.DataLayer)
local MigrationLayer = {}
function MigrationLayer._unpack(value, migrations)
value = value or {
generation = #migrations;
data = nil;
}
local data = value.data
local generation = value.generation
if generation < #migrations then
for i = generation + 1, #... | 216 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/RetryLayer.lua | local ThrottleLayer = require(script.Parent.ThrottleLayer)
local Error = require(script.Parent.Parent.Error)
local RetryLayer = {}
function RetryLayer._retry(callback, ...)
local attempts = 0
while attempts < 5 do
attempts = attempts + 1
local ok, value = pcall(callback, ...)
if ok then
return value
e... | 216 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/ThrottleLayer.lua | local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService)
local RunService = game:GetService("RunService")
local DataStoreLayer = require(script.Parent.DataStoreLayer)
local METHOD_RESOURCE_MAP = {
GetAsync = Enum.DataStoreRequestType.GetAsync;
UpdateAsync = Enum.DataStoreRequestType.Update... | 431 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/init.lua | local t = require(script.Parent.t)
local Promise = require(script.Parent.Promise)
local Collection = require(script.Collection)
local Error = require(script.Error)
local Quicksave = {
t = t;
Promise = Promise;
Error = Error;
_collections = {};
}
function Quicksave.createCollection(name, options)
if Quicksave._c... | 151 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.