repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/BrickColor.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local BrickColorType = {} function BrickColorType:Serialize(value: BrickColor) self:Write(8,"writef64",value.r * 255) self:Write(8,"writef64", value.g * 255) self:Write(8,"writef64", value.b * 255) end functio...
150
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/CFrame.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local CFrameType = {} function CFrameType:Serialize(value:CFrame) local x,y,z,r01,r02,r03,r11,r12,r13,r21,r22,r23 = value:GetComponents() self:Write(8,"writef64",x) self:Write(8,"writef64",y) self:Write(8,"...
390
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Color3.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Color3Type = {} function Color3Type:Serialize(value:Color3) self:Write(8,"writef64",value.R * 255) self:Write(8,"writef64", value.G * 255) self:Write(8,"writef64", value.B * 255) end function Color3Type:...
152
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/DateTime.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local DateTimeType = {} function DateTimeType:Serialize(value:DateTime) self:Write(8,"writef64",value.UnixTimestamp) end function DateTimeType:Deserialize() return DateTime.fromUnixTimestamp(self:Read(8,"readf64")...
85
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Float32.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Float32 = {} function Float32:Serialize(value:number) self:Write(4,"writef32",value) end function Float32:Deserialize() return self:Read(4,"readf32") end return Float32
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Float64.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Float64 = {} function Float64:Serialize(value:number) self:Write(8,"writef64",value) end function Float64:Deserialize() return self:Read(8,"readf64") end return Float64
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Integer16.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Integer16 = {} function Integer16:Serialize(value:number) self:Write(2,"writei16",value) end function Integer16:Deserialize() return self:Read(2,"readi16") end return Integer16
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Integer32.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Integer32 = {} function Integer32:Serialize(value:number) self:Write(4,"writei32",value) end function Integer32:Deserialize() return self:Read(4,"readi32") end return Integer32
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Integer8.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Integer8 = {} function Integer8:Serialize(value:number) self:Write(1,"writei8",value) end function Integer8:Deserialize() return self:Read(1,"readi8") end return Integer8
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/TweenInfo.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local TweenInfoType = {} function TweenInfoType:Serialize(value:TweenInfo) self:Write(8,"writef64",value.Time) self:Write(1,"writeu8",value.EasingStyle.Value) self:Write(1,"writeu8",value.EasingDirection.Value)...
259
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Udim.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local UdimType = {} function UdimType:Serialize(value:UDim) self:Write(8,"writef64",value.Scale) self:Write(8,"writef64",value.Offset) end function UdimType:Deserialize() return UDim.new( self:Read(8,"readf64")...
115
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Udim2.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Udim2Type = {} function Udim2Type:Serialize(value:UDim2) local x,y = value.X,value.Y self:Write(8,"writef64",x.Scale) self:Write(8,"writef64",x.Offset) self:Write(8,"writef64",y.Scale) self:Write(8,"writef64"...
178
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Unsigned16.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Unsigned16 = {} function Unsigned16:Serialize(value:number) self:Write(2,"writeu16",value) end function Unsigned16:Deserialize() return self:Read(2,"readu16") end return Unsigned16
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Unsigned32.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Unsigned32 = {} function Unsigned32:Serialize(value:number) self:Write(4,"writeu32",value) end function Unsigned32:Deserialize() return self:Read(4,"readu32") end return Unsigned32
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Unsigned8.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Unsigned8 = {} function Unsigned8:Serialize(value:number) self:Write(1,"writeu8",value) end function Unsigned8:Deserialize() return self:Read(1,"readu8") end return Unsigned8
77
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Vector2.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Vector2Type = {} function Vector2Type:Serialize(value:Vector2) self:Write(8,"writef64",value.X) self:Write(8,"writef64",value.Y) end function Vector2Type:Deserialize() return Vector2.new( self:Read(8,"rea...
115
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Vector2int16.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Vector2int16Type = {} function Vector2int16Type:Serialize(value:Vector2int16) self:Write(2,"writei16",value.X) self:Write(2,"writei16",value.Y) end function Vector2int16Type:Deserialize() return Vector2int1...
127
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Vector3.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Vector3Type = {} function Vector3Type:Serialize(value:Vector3) self:Write(8,"writef64",value.X) self:Write(8,"writef64",value.Y) self:Write(8,"writef64",value.Z) end function Vector3Type:Deserialize() retu...
139
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Buffer/Types/Vector3int16.luau
luau
.luau
-- Madonox -- 2024 -- Abstracts from Buffer (:Serialize is called as though it were the buffer) local Vector3int16Type = {} function Vector3int16Type:Serialize(value:Vector3int16) self:Write(2,"writei16",value.X) self:Write(2,"writei16",value.Y) self:Write(2,"writei16",value.Z) end function Vector3int16Type:De...
151
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Cleaner.luau
luau
.luau
-- Madonox -- 2024 export type Cleaner = { Cleanup: (any,string?) -> nil; CleanupTable: ({[any]: any}) -> nil; } --[=[ @class Cleaner The Cleaner class provides a set of functions for cleaning up instances, and tables. ]=] local Cleaner:Cleaner = {} :: Cleaner local CleanupFunctions = { Instance = function(object...
1,085
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Netty/init.luau
luau
.luau
--!native --!optimize 2 -- Madonox -- 2024 local RunService = game:GetService("RunService") local NettyClient = require(script:WaitForChild("NettyClient")) local NettyServer = require(script:WaitForChild("NettyServer")) export type Netty = { Client: NettyClient.NettyClient; Server: NettyServer.NettyServer; } ...
141
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Observer.luau
luau
.luau
-- Madonox -- 2024 export type Proxy = { onRead: ((any) -> nil) -> nil; onWrite: ((any,any) -> nil) -> nil; __readEmitters: {(any) -> nil}; __writeEmitters: {(any,any) -> nil}; [any]: any; } export type Observer = { new: () -> Proxy; cleanup: (any) -> nil; } --[=[ @class Observer The Observer class allows f...
778
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/Thread.luau
luau
.luau
-- Madonox -- 2024 --[=[ @interface ThreadOptions @within Thread .Interval number? -- The interval to run operations at (default 0.01). .OperationLimit number? -- The number of operations to run each step (default 5). ]=] export type ThreadOptions = { Interval: number?; OperationLimit: number?; } export type Thread...
862
Madonox/Commons
Madonox-Commons-67b4bc1/src/Commons/init.luau
luau
.luau
-- Madonox -- 2024 local Buffer = require(script:WaitForChild("Buffer")) local Netty = require(script:WaitForChild("Netty")) local Thread = require(script:WaitForChild("Thread")) local Observer = require(script:WaitForChild("Observer")) type Commons = { Netty: Netty.Netty; Buffer: Buffer.BufferLibrary; Threa...
128
Madonox/Commons
Madonox-Commons-67b4bc1/src/tests/client/net_test.client.luau
luau
.luau
-- Basic Roblox test local Remote = game:GetService("ReplicatedStorage"):WaitForChild("MyRemote") local TotalCount = 0 Remote.OnClientEvent:Connect(function(count) TotalCount += count end) task.spawn(function() while task.wait(1) do print(TotalCount) end end)
70
Madonox/Commons
Madonox-Commons-67b4bc1/src/tests/client/netty_client.client.luau
luau
.luau
local Commons = require(game:GetService("ReplicatedStorage"):WaitForChild("Commons")) local NettyClient = Commons.Netty.Client local TotalCount = 0 NettyClient.RegisterEvent("count number",function(number) TotalCount += number end) local Count2 = 0 NettyClient.RegisterEvent("count number 2",function() Count2 += 1 e...
130
Madonox/Commons
Madonox-Commons-67b4bc1/src/tests/server/net_test.server.luau
luau
.luau
-- Basic Roblox test local Remote = Instance.new("RemoteEvent") Remote.Name = "MyRemote" Remote.Parent = game:GetService("ReplicatedStorage") task.spawn(function() while task.wait(1) do for i = 1,200 do Remote:FireAllClients(1) end end end)
72
Madonox/Commons
Madonox-Commons-67b4bc1/src/tests/server/netty_server.server.luau
luau
.luau
local Commons = require(game:GetService("ReplicatedStorage"):WaitForChild("Commons")) local NettyServer = Commons.Netty.Server NettyServer.RegisterEvent("count number") NettyServer.RegisterEvent("count number 2") NettyServer.Start() task.spawn(function() while task.wait(1) do for i = 1,200 do NettyServer.FireA...
111
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/LICENSE.luau
luau
.luau
--[[ MIT License Copyright (c) 2024 Redon Tech Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
238
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/apis/client.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
851
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/apis/server.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
820
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/dev/client.client.luau
luau
.luau
local localPlayer = game.Players.LocalPlayer local ScreenGui = localPlayer:WaitForChild("PlayerGui"):WaitForChild("ScreenGui") local template = ScreenGui:WaitForChild("Frame"):WaitForChild("template") template.Visible = false for i, v in pairs(game.Teams:GetChildren()) do local clone = template:Clone() clone.Name = ...
129
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/dev/server.server.luau
luau
.luau
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player: Player, teamName: string) player.Team = game.Teams[teamName] player:LoadCharacter() end)
39
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/settings.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
1,279
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/audio.luau
luau
.luau
-- Redon Tech Radio Systen local audio = {} audio.__index = audio function audio.new(main: { any }, assetId: string | boolean?, looped: boolean) local data = { main = main, sound = Instance.new("Sound"), isEnabled = typeof(assetId) == "string", } local self = setmetatable(data, audio) self.sound.SoundId = ...
167
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/message.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local util = require(shared:WaitForChild("util")) local New, Children = Fusion.New, Fusion.Children return function(props) local message: F...
1,279
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/messages.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent return function(props) local messages messages = New("Scrolling...
393
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/radioChannel.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, Computed, OnEvent = Fusion.New, Fusion.Children, Fusion.Computed, Fusion.OnEvent return function(props) return New("Te...
430
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/radioChannels.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent return function(props) local frame: Frame? frame = New("Frame")...
402
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/radioTopbar.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent return function(props) return New("Frame")({ Name = "Topbar", ...
950
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/main.luau
luau
.luau
-- Redon Tech Radio System local main = {} main.__index = main local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local TextChatService = game:GetService("TextChatService") local localPlayer = Players....
5,300
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/runner.client.luau
luau
.luau
-- Redon Tech Radio System local main = script.Parent:WaitForChild("main") local success, result = pcall(function() return require(main).init() end) if not success then warn("[RTRS Client]: Client could not start\n", result, "\nTraceback:\n", debug.traceback()) end
69
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/init.server.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
496
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/server/channel.luau
luau
.luau
-- Redon Tech Radio System type SystemMessage = { text: string, headerText: string?, backgroundColor3: Color3?, icon: string?, iconColor3: Color3?, iconRounded: boolean?, sideText: string?, sideAccent: Color3?, } local channel = {} channel.__index = channel local ReplicatedStorage = game:GetService("Replicat...
1,756
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/server/main.luau
luau
.luau
-- Redon Tech Radio System local main = {} main.__index = main local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local shared = ReplicatedStorage:WaitForChild("radioShared") local systemSettings = require(shared:WaitForChild("settings")) local comm = require(sh...
1,196
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/Spring.luau
luau
.luau
--!nonstrict --[[ Constructs a new computed state object, which follows the value of another state object using a spring simulation. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local Types = require(Package.Types) local logError = require(Package.Logging.logError) local logErr...
1,550
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/Tween.luau
luau
.luau
--!nonstrict --[[ Constructs a new computed state object, which follows the value of another state object using a tween. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local Types = require(Package.Types) local TweenScheduler = require(Package.Animation.TweenScheduler) local useD...
961
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/TweenScheduler.luau
luau
.luau
--!strict --[[ Manages batch updating of tween objects. ]] local RunService = game:GetService("RunService") local Package = script.Parent.Parent local Types = require(Package.Types) local lerpType = require(Package.Animation.lerpType) local getTweenRatio = require(Package.Animation.getTweenRatio) local updateAll = ...
464
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/getTweenRatio.luau
luau
.luau
--!strict --[[ Given a `tweenInfo` and `currentTime`, returns a ratio which can be used to tween between two values over time. ]] local TweenService = game:GetService("TweenService") local function getTweenRatio(tweenInfo: TweenInfo, currentTime: number): number local delay = tweenInfo.DelayTime local duration =...
247
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/lerpType.luau
luau
.luau
--!strict --[[ Linearly interpolates the given animatable types by a ratio. If the types are different or not animatable, then the first value will be returned for ratios below 0.5, and the second value for 0.5 and above. FIXME: This function uses a lot of redefinitions to suppress false positives from the Luau ...
1,518
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/packType.luau
luau
.luau
--!strict --[[ Packs an array of numbers into a given animatable data type. If the type is not animatable, nil will be returned. FUTURE: When Luau supports singleton types, those could be used in conjunction with intersection types to make this function fully statically type checkable. ]] local Package = script...
813
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/springCoefficients.luau
luau
.luau
--!strict --[[ Returns a 2x2 matrix of coefficients for a given time, damping and speed. Specifically, this returns four coefficients - posPos, posVel, velPos, and velVel - which can be multiplied with position and velocity like so: local newPosition = oldPosition * posPos + oldVelocity * posVel local newVelocit...
1,016
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Animation/unpackType.luau
luau
.luau
--!strict --[[ Unpacks an animatable type into an array of numbers. If the type is not animatable, an empty array will be returned. FIXME: This function uses a lot of redefinitions to suppress false positives from the Luau typechecker - ideally these wouldn't be required FUTURE: When Luau supports singleton typ...
731
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Dependencies/captureDependencies.luau
luau
.luau
--!strict --[[ Calls the given callback, and stores any used external dependencies. Arguments can be passed in after the callback. If the callback completed successfully, returns true and the returned value, otherwise returns false and the error thrown. The callback shouldn't yield or run asynchronously. NOTE: ...
361
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Dependencies/initDependency.luau
luau
.luau
--!strict --[[ Registers the creation of an object which can be used as a dependency. This is used to make sure objects don't capture dependencies originating from inside of themselves. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local sharedState = require(Package.Dependenc...
146
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Dependencies/sharedState.luau
luau
.luau
--!strict --[[ Stores shared state for dependency management functions. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) type Set<T> = {[T]: any} -- The set where used dependencies should be saved to. local dependencySet: Set<PubTypes.Dependency>? = nil -- A stack of sets where n...
125
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Dependencies/updateAll.luau
luau
.luau
--!strict --[[ Given a reactive object, updates all dependent reactive objects. Objects are only ever updated after all of their dependencies are updated, are only ever updated once, and won't be updated if their dependencies are unchanged. ]] local Package = script.Parent.Parent local PubTypes = require(Package....
449
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Dependencies/useDependency.luau
luau
.luau
--!strict --[[ If a target set was specified by captureDependencies(), this will add the given dependency to the target set. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local sharedState = require(Package.Dependencies.sharedState) local initialisedStack = sharedState.initiali...
168
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/Children.luau
luau
.luau
--!strict --[[ A special key for property tables, which parents any given descendants into an instance. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local logWarn = require(Package.Logging.logWarn) local Observer = require(Package.State.Observer) local xtypeof = require(Package...
1,010
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/Cleanup.luau
luau
.luau
--!strict --[[ A special key for property tables, which adds user-specified tasks to be run when the instance is destroyed. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local Cleanup = {} Cleanup.type = "SpecialKey" Cleanup.kind = "Cleanup" Cleanup.stage = "observer" function...
106
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/Hydrate.luau
luau
.luau
--!strict --[[ Processes and returns an existing instance, with options for setting properties, event handlers and other attributes on the instance. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local applyInstanceProps = require(Package.Instances.applyInstanceProps) local func...
104
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/New.luau
luau
.luau
--!strict --[[ Constructs and returns a new instance, with options for setting properties, event handlers and other attributes on the instance right away. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local defaultProps = require(Package.Instances.defaultProps) local applyInstan...
203
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/OnChange.luau
luau
.luau
--!strict --[[ Constructs special keys for property tables which connect property change listeners to an instance. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local logError = require(Package.Logging.logError) local function OnChange(propertyName: string): PubTypes.SpecialKey...
225
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/OnEvent.luau
luau
.luau
--!strict --[[ Constructs special keys for property tables which connect event listeners to an instance. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local logError = require(Package.Logging.logError) local function getProperty_unsafe(instance: Instance, property: string) ret...
242
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/Out.luau
luau
.luau
--!strict --[[ A special key for property tables, which allows users to extract values from an instance into an automatically-updated Value object. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local logError = require(Package.Logging.logError) local xtypeof = require(Package.Ut...
286
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/Ref.luau
luau
.luau
--!strict --[[ A special key for property tables, which stores a reference to the instance in a user-provided Value object. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local logError = require(Package.Logging.logError) local xtypeof = require(Package.Utility.xtypeof) local Re...
177
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/applyInstanceProps.luau
luau
.luau
--!strict --[[ Applies a table of properties to an instance, including binding to any given state objects and applying any special keys. No strong reference is kept by default - special keys should take care not to accidentally hold strong references to instances forever. If a key is used twice, an error will b...
993
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Instances/defaultProps.luau
luau
.luau
--!strict --[[ Stores 'sensible default' properties to be applied to instances created by the New function. ]] return { ScreenGui = { ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling }, BillboardGui = { ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling }, SurfaceGui...
790
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Logging/logError.luau
luau
.luau
--!strict --[[ Utility function to log a Fusion-specific error. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local messages = require(Package.Logging.messages) local function logError(messageID: string, errObj: Types.Error?, ...) local formatString: string if messages[messageID] ~...
221
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Logging/logErrorNonFatal.luau
luau
.luau
--!strict --[[ Utility function to log a Fusion-specific error, without halting execution. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local messages = require(Package.Logging.messages) local function logErrorNonFatal(messageID: string, errObj: Types.Error?, ...) local formatString...
238
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Logging/logWarn.luau
luau
.luau
--!strict --[[ Utility function to log a Fusion-specific warning. ]] local Package = script.Parent.Parent local messages = require(Package.Logging.messages) local function logWarn(messageID, ...) local formatString: string if messages[messageID] ~= nil then formatString = messages[messageID] else messageID ...
118
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Logging/parseError.luau
luau
.luau
--!strict --[[ An xpcall() error handler to collect and parse useful information about errors, such as clean messages and stack traces. TODO: this should have a 'type' field for runtime type checking! ]] local Package = script.Parent.Parent local Types = require(Package.Types) local function parseError(err: stri...
122
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/PubTypes.luau
luau
.luau
--!strict --[[ Stores common public-facing type information for Fusion APIs. ]] type Set<T> = {[T]: any} --[[ General use types ]] -- A unique symbolic value. export type Symbol = { type: string, -- replace with "Symbol" when Luau supports singleton types name: string } -- Types that can be expressed as vector...
1,063
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/State/Computed.luau
luau
.luau
--!nonstrict --[[ Constructs and returns objects which can be used to model derived reactive state. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local captureDependencies = require(Package.Dependencies.captureDependencies) local initDependency = require(Package.Dependencies.initDepen...
822
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/State/ForKeys.luau
luau
.luau
--!nonstrict --[[ Constructs a new ForKeys state object which maps keys of an array using a `processor` function. Optionally, a `destructor` function can be specified for cleaning up calculated keys. If omitted, the default cleanup function will be used instead. Optionally, a `meta` value can be returned in the...
1,962
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/State/ForPairs.luau
luau
.luau
--!nonstrict --[[ Constructs a new ForPairs object which maps pairs of a table using a `processor` function. Optionally, a `destructor` function can be specified for cleaning up values. If omitted, the default cleanup function will be used instead. Additionally, a `meta` table/value can optionally be returned t...
2,400
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/State/Observer.luau
luau
.luau
--!nonstrict --[[ Constructs a new state object which can listen for updates on another state object. FIXME: enabling strict types here causes free types to leak ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local Types = require(Package.Types) local initDependency = require(P...
496
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/State/Value.luau
luau
.luau
--!nonstrict --[[ Constructs and returns objects which can be used to model independent reactive state. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local useDependency = require(Package.Dependencies.useDependency) local initDependency = require(Package.Dependencies.initDependency) l...
390
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/State/unwrap.luau
luau
.luau
--!strict --[[ A common interface for accessing the values of state objects or constants. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local xtypeof = require(Package.Utility.xtypeof) local function unwrap<T>(item: PubTypes.CanBeState<T>, useDependency: boolean?): T return if ...
104
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Types.luau
luau
.luau
--!strict --[[ Stores common type information used internally. These types may be used internally so Fusion code can type-check, but should never be exposed to public users, as these definitions are fair game for breaking changes. ]] local Package = script.Parent local PubTypes = require(Package.PubTypes) type ...
1,104
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/None.luau
luau
.luau
--!strict --[[ A symbol for representing nil values in contexts where nil is not usable. ]] local Package = script.Parent.Parent local Types = require(Package.Types) return { type = "Symbol", name = "None" } :: Types.None
52
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/cleanup.luau
luau
.luau
--!strict --[[ Cleans up the tasks passed in as the arguments. A task can be any of the following: - an Instance - will be destroyed - an RBXScriptConnection - will be disconnected - a function - will be run - a table with a `Destroy` or `destroy` function - will be called - an array - `cleanup` will be called...
324
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/doNothing.luau
luau
.luau
--!strict --[[ An empty function. Often used as a destructor to indicate no destruction. ]] local function doNothing(...: any) end return doNothing
35
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/isSimilar.luau
luau
.luau
--!strict --[[ Returns true if A and B are 'similar' - i.e. any user of A would not need to recompute if it changed to B. ]] local function isSimilar(a: any, b: any): boolean -- HACK: because tables are mutable data structures, don't make assumptions -- about similarity from equality for now (see issue...
116
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/needsDestruction.luau
luau
.luau
--!strict --[[ Returns true if the given value is not automatically memory managed, and requires manual cleanup. ]] local function needsDestruction(x: any): boolean return typeof(x) == "Instance" end return needsDestruction
53
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/restrictRead.luau
luau
.luau
--!strict --[[ Restricts the reading of missing members for a table. ]] local Package = script.Parent.Parent local logError = require(Package.Logging.logError) type table = {[any]: any} local function restrictRead(tableName: string, strictTable: table): table -- FIXME: Typed Luau doesn't recognise this correctly ...
145
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/Utility/xtypeof.luau
luau
.luau
--!strict --[[ Extended typeof, designed for identifying custom objects. If given a table with a `type` string, returns that. Otherwise, returns `typeof()` the argument. ]] local function xtypeof(x: any) local typeString = typeof(x) if typeString == "table" and typeof(x.type) == "string" then return x.type e...
93
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/Fusion/init.luau
luau
.luau
--!strict --[[ The entry point for the Fusion library. ]] local PubTypes = require(script.PubTypes) local restrictRead = require(script.Utility.restrictRead) export type StateObject<T> = PubTypes.StateObject<T> export type CanBeState<T> = PubTypes.CanBeState<T> export type Symbol = PubTypes.Symbol export type Value...
780
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/shared/util.luau
luau
.luau
local TextService = game:GetService("TextService") local util = {} -- Below function is basically copy and pasted from Roblox core scripts for the chat function util.getStringTextBounds(text, font, textSize, sizeBounds) sizeBounds = sizeBounds or Vector2.new(10000, 10000) return TextService:GetTextSize(text, textSiz...
182
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/scripts/convert.luau
luau
.luau
--selene: allow(incorrect_standard_library_use) local remodel = require("./remodel") local game = remodel.readPlaceFile("../Pathfinder.rbxl") local Workspace = game.Workspace local Lighting = game.Lighting local function handleLoops(object, folderName) if object.ClassName == "Folder" then local dir = ".....
220
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/modules/Pathfinder/PathfinderClass/PathfinderMethods/PathfinderHelper.luau
luau
.luau
--!strict local Debris = game:GetService("Debris") local PathfinderHelper = {} PathfinderHelper.__index = PathfinderHelper local Types = require(script.Parent.Parent.Parent.Types) function PathfinderHelper:_InsertDebugWaypoint(pos: Vector3, num: number, color: Color3?, action: Enum.PathWaypointAction?) if not self....
1,450
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/modules/Pathfinder/PathfinderClass/PathfinderMethods/init.luau
luau
.luau
--!strict local PathfinderHelper = require(script.PathfinderHelper) local PathfinderMethods = {} PathfinderMethods.__index = setmetatable(PathfinderMethods, PathfinderHelper) --[[ MoveTo function which accounts for a custom MoveTo method. ]] function PathfinderMethods:_MoveTo(p: Vector3) if self._moveFunction then...
2,755
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/modules/Pathfinder/PathfinderClass/init.luau
luau
.luau
--!strict local PathfindingService = game:GetService("PathfindingService") local Types = require(script.Parent.Types) local PathfinderMethods = require(script.PathfinderMethods) local PathfinderHelper = require(script.PathfinderMethods.PathfinderHelper) local Pathfinder = {} Pathfinder.__index = setmetatable(Pathfin...
1,797
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/modules/Pathfinder/Types.luau
luau
.luau
--!strict export type Pathfinder = { ["_character"]: Model, ["_target"]: Vector3 | BasePart | Model, ["_movingTarget"]: boolean, ["_abilityLastActivated"]: number, ["_movingTargetTrackingRange"]: number?, ["_movingTargetRetargetingRange"]: number?, ["_pathfinderAbilities"]: PathfinderAbilities?, ["_running"]: b...
1,194
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/modules/Pathfinder/init.luau
luau
.luau
--!strict return(require(script.PathfinderClass))
11
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/server/AbilityControl/init.server.luau
luau
.luau
--!strict local ServerStorage = game:GetService("ServerStorage") local CollectionService = game:GetService("CollectionService") local TAG = "AbilityRig" local Types = require(ServerStorage:FindFirstChild("Pathfinder"):FindFirstChild("Types")) local Pathfinder = require(ServerStorage:FindFirstChild("Pathfinder")) typ...
757
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/server/CharacterChase/init.server.luau
luau
.luau
--!strict local ServerStorage = game:GetService("ServerStorage") local CollectionService = game:GetService("CollectionService") local Players = game:GetService("Players") local TAG = "ChaseRig" local Pathfinder = require(ServerStorage:FindFirstChild("Pathfinder")) local function onPlrAdded(plr: Player, char: Model)...
365
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/server/CharacterControl/init.server.luau
luau
.luau
--!strict local ServerStorage = game:GetService("ServerStorage") local CollectionService = game:GetService("CollectionService") local TAG = "TestRig" local Pathfinder = require(ServerStorage:FindFirstChild("Pathfinder")) local Types = require(ServerStorage:FindFirstChild("Pathfinder"):FindFirstChild("Types")) local...
486
Aerodymier/Pathfinder
Aerodymier-Pathfinder-2b40eb0/src/server/EventsTest/init.server.luau
luau
.luau
--!strict local ServerStorage = game:GetService("ServerStorage") local CollectionService = game:GetService("CollectionService") local TAG = "EventsRig" local Pathfinder = require(ServerStorage:FindFirstChild("Pathfinder")) local Types = require(ServerStorage:FindFirstChild("Pathfinder"):FindFirstChild("Types")) loc...
473
wrello/Plums
wrello-Plums-16119f5/Plums/PlumsClient/ClientPlum.luau
luau
.luau
--[[ comdoc "Client Plum" 3 LastUpdated [ Properties (readonly) ] .Data : {} The data table of the plum. .Clients : {Player} The array of clients that have been added to the plum. .ClassName : string The class name that the plum was created with. .Id : number The ...
1,775