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
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Util/Cache.luau
luau
.luau
local LinkedList = require("../Classes/LinkedList") local Cache = { Channels = {}, Guilds = {}, Users = LinkedList.new(), Members = LinkedList.new(), Messages = LinkedList.new() } return Cache
44
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Util/Mutex.luau
luau
.luau
--[=[ @class Mutex A mutex (mutual exclusion) implementation for coroutine synchronization. Based on SinisterRectus's implementation in Discordia. ]=] local Task = require("../Util/Task") local Mutex = {} Mutex.__index = Mutex Mutex.__len = function(self) return self.Length end local LinkedList = require("....
468
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Util/Task.luau
luau
.luau
local Task = {} local Event = require("../Classes/Event") local task = require("@lune/task") function Task.Cancel(thread: thread) task.cancel(thread) end function Task.Delay<T...>(duration: number, functionOrThread: ((T...) -> ...any) | thread, ...: T...) : thread print("[Task] Delaying for ", duration, " seconds")...
186
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/init.luau
luau
.luau
return require("./Aloha")
7
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/DefaultData.luau
luau
.luau
return { -- Adds to default data. Examples: -- Points = 25 -- Adds "Points" to data and defaults to 25 -- Adds "Coins" to data and defaults to 0 Coins = 0, -- Example table for default data Inventory = { Pills = {}, -- [itemId] = {itemName = string, quantity = number} Elixirs = {}, -- [itemId] = {itemName...
206
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Cache.luau
luau
.luau
--!strict export type CacheModule = { GetFromValueCache: (key: string) -> any?, SetInValueCache: (key: string, value: any) -> (), GetFromNestedCache: (path: string) -> any?, SetInNestedCache: (path: string, value: any) -> (), ClearAllCaches: () -> (), CleanupCache: () -> (), InvalidateForMutationPath: (path: {a...
927
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Connection.luau
luau
.luau
--!strict export type ConnectionModule = { AddConnection: (connection: any) -> (), ScheduleCleanup: () -> (), } local function CreateConnectionModule(): ConnectionModule local activeConnections: {any} = {} local connectionCleanupScheduled = false local function ScheduleCleanup(): () if connectionCleanupSchedu...
197
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Leaderboard.luau
luau
.luau
--!strict export type LeaderboardInfo = { rank: number?, score: number?, statName: string, } export type LeaderboardEntry = { userId: number, score: number, rank: number, } local Leaderboard = {} local function ToLeaderboardInfo(statName: string, statData: any): LeaderboardInfo? if typeof(statData) ~= "table...
493
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/PathCache.luau
luau
.luau
--!strict export type PathCacheModule = { GetPathKeys: (path: string) -> {string}, ClearCache: () -> (), } local function CreatePathCache(maxPathCacheSize: number): PathCacheModule local pathCache: {[string]: {string}} = {} local function GetPathKeys(path: string): {string} local cached = pathCache[path] if ...
274
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Validation.luau
luau
.luau
--!strict local Validation = {} function Validation.ValidateReplica(replica: any?): boolean return replica ~= nil and replica:IsActive() end function Validation.WaitForData( dataReady: () -> boolean, validateReplica: (replica: any?) -> boolean, getReplica: () -> any?, readyEvent: BindableEvent? ): boolean if d...
169
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Array.luau
luau
.luau
--!strict local Array = {} function Array.AddToArray(replica: any, pathKeys: {string}, item: any): (boolean, string?) local success, result = pcall(replica.TableInsert, replica, pathKeys, item) if not success then return false, result end return success, nil end function Array.RemoveFromArray(replica: any, pa...
206
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Batch.luau
luau
.luau
--!strict export type BatchOperation = { path: string, value: any, } export type BatchModule = { ScheduleBatchOperation: (player: Player, operation: BatchOperation) -> (), ProcessBatchOperations: (player: Player) -> (), FlushBatch: (player: Player) -> (), ClearPlayerBatch: (player: Player) -> (), } local funct...
1,066
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/DataUtils.luau
luau
.luau
--!strict local DataUtils = {} local INT32_MAX = 2147483647 local INT32_MIN = -2147483648 local DEFAULT_RUNTIME_NON_PERSISTENT_ROOTS = { "session", "_LeaderboardRanks", "_Leaderboards", "_Leaderboard", } local DEFAULT_SERVER_ONLY_ROOTS = { "Server", } function DataUtils.GetAppropriateValueType(value: number): s...
2,047
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/DataWipe.luau
luau
.luau
--!strict local Players = game:GetService("Players") local DataUtils = require(script.Parent.DataUtils) local Utils = require(script.Parent.Parent.Shared.Utils) local DataWipe = {} function DataWipe.WipePlayerData( player: Player, config: any, getProfile: (player: Player) -> any?, getReplica: (player: Player) ->...
879
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Dict.luau
luau
.luau
--!strict local Dict = {} local function getParentAndDictSlot(replicaData: any, pathKeys: {string}): (any?, string?) if #pathKeys == 0 then return nil, nil end local current = replicaData for i = 1, #pathKeys - 1 do local k = pathKeys[i] if typeof(current) ~= "table" then return nil, nil end current...
423
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Leaderboard.luau
luau
.luau
--!strict local Players = game:GetService("Players") local DataStoreService = game:GetService("DataStoreService") local DataUtils = require(script.Parent.DataUtils) export type LeaderboardEntry = { userId: number, score: number, rank: number, } export type LeaderboardModule = { InitializeLeaderboards: () -> (), ...
3,267
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Leaderstats.luau
luau
.luau
--!strict local Leaderstats = {} local INT32_MAX = 2147483647 local INT32_MIN = -2147483648 local function GetAppropriateValueType(value: number): string if value % 1 ~= 0 then return "NumberValue" elseif value > INT32_MAX or value < INT32_MIN then return "NumberValue" else return "IntValue" end end funct...
955
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/LegacyMigration.luau
luau
.luau
--!strict local DataStoreService = game:GetService("DataStoreService") local DataUtils = require(script.Parent.DataUtils) local LegacyMigration = {} export type MigrationResult = { applied: boolean, legacyFound: boolean, markerWritten: boolean, keyUsed: string?, strategy: string, markerPath: string, continuo...
2,906
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/OfflineData.luau
luau
.luau
--!strict local Players = game:GetService("Players") local DataUtils = require(script.Parent.DataUtils) local OfflineData = {} function OfflineData.GetOfflineData( userId: number, config: any, profileStore: any, getAllForPlayer: (player: Player) -> any? ): any? if not userId or userId == 0 then warn("[PlayerS...
788
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Validation.luau
luau
.luau
--!strict local Players = game:GetService("Players") local Validation = {} function Validation.ValidatePlayer(player: Player): boolean return player and player.Parent == Players end function Validation.ValidateReplica(replica: any?): boolean return replica ~= nil and replica:IsActive() end function Validation.Va...
84
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/OfflineDataRemote.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local RemoteRegistry = require(script.Parent.RemoteRegistry) local REMOTE_NAME = "GetOfflineData" local cachedRemote: RemoteFunction? local function _EnsureRemote(): RemoteFunction if cachedRemote then return cachedRemote end local resolvedRemote = Re...
210
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/PathCache.luau
luau
.luau
--!strict export type PathCacheModule = { GetPathKeys: (path: string) -> {string}, ClearCache: () -> (), } local function CreatePathCache(maxCacheSize: number): PathCacheModule local pathCache: {[string]: {string}} = {} local pathCacheSize: number = 0 local function GetPathKeys(path: string): {string} local c...
270
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/RemoteRegistry.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local PLAYER_STATE_ROOT = script.Parent.Parent.Parent local REMOTES_FOLDER_NAME = "Remotes" local WAIT_TIMEOUT_SECONDS = 30 local cachedRemotes: {[string]: Instance} = {} local function _EnsureRemotesFolderServer(): Folder local existingFolder = PLAYER_STA...
770
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/Remotes/GetOfflineDataRemote.luau
luau
.luau
--!strict local Registry = require(script.Parent.Registry) local REMOTE_NAME = "GetOfflineData" local OfflineDataRemote = {} function OfflineDataRemote.SetupServer(playerState: any): () Registry.BindRemoteFunction(REMOTE_NAME, function(player: Player, userId: unknown): any? if typeof(userId) ~= "number" then ...
122
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/Remotes/Registry.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local PLAYER_STATE_ROOT = script.Parent.Parent.Parent.Parent local REMOTES_FOLDER_NAME = "Remotes" local WAIT_TIMEOUT_SECONDS = 30 local cachedRemotes: {[string]: Instance} = {} local function _EnsureRemotesFolderServer(): Folder local existingFolder = PLA...
879
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/Utils.luau
luau
.luau
--!strict local Utils = {} function Utils.DeepClone(value: any): any local copy = {} for key, entry in value do copy[key] = if typeof(entry) == "table" then Utils.DeepClone(entry) else entry end return copy end return Utils
62
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/PlayerStateClient.luau
luau
.luau
--!strict --[[ PlayerStateClient - Client-side player data access Documentation: https://playerstate.netlify.app/api/client/ --]] local RunService = game:GetService("RunService") local dataReadyEvent = Instance.new("BindableEvent") local sharedReadyEvent = Instance.new("BindableEvent") local IS_CLIENT = RunServ...
4,528
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/PlayerStateConfig.luau
luau
.luau
--[[ PlayerStateConfig - Configuration settings for PlayerState system Documentation: https://playerstate.netlify.app/setup.html#playerstateconfig-module --]] -- Libraries local DefaultData = require(script.Parent.DefaultData) local Config = { Server = { Profile = { -- Unique key for ProfileStore data ident...
1,104
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/PlayerStateServer.luau
luau
.luau
--!strict --[[ PlayerStateServer - Server-side player data access Documentation: https://playerstate.netlify.app/api/server/ --]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local IS_SERVER = RunService:IsServer() if not IS_SERVER then error("[PlayerStateServer] Th...
11,602
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Replica/RateLimit.luau
luau
.luau
--!strict --[[ MAD STUDIO -[RateLimit]--------------------------------------- Can be used to prevent RemoteEvent spamming; Player references are automatically removed as they leave Functions: RateLimit.New(rate, is_full_wait) --> [RateLimit] rate [number] -- Events per second allowed; Excessive ev...
787
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Replica/Remote.luau
luau
.luau
--[[ MAD STUDIO -[Remote]--------------------------------------- Remote event setup utility; Prevents duplicate RemoteEvent names server-side Functions: Remote.New(name [string], is_unreliable [bool]) --> [RemoteEvent] -- Calling this with the same name server-side twice will throw an error --]] ----- P...
1,030
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/add_component.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local query_parser = require(script.Parent.Parent.Parent.Parent.server.query_parser) local create = vide.create local source = vide.source local show = vide.show type props = {...
701
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/editor.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local create = vide.create local show = vide.show type props = { components: () -> {[string]: string}, changes: vide.Source<{[string]: string}>, editing: vide.Source<false |...
723
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local widget = require(script.widget) local source = vide.source local cleanup = vide.cleanup local overview_entity = { class_name = "app" :: ...
347
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/systems/obtain_entity_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect local cleanup = vide.cleanup local batch = vide.batch ...
464
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/widget.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local add_component = require(script.Parent.add_component) local ed...
2,273
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/home/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local widget = require(script.widget) local cleanup = vide.cleanup local home = { class_name = "app" :: "app", name = "Home" } function home...
159
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/home/widget.luau
luau
.luau
local Players = game:GetService("Players") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local spawn_app = require(script.Parent.Parent.Parent.spawn_app) local overview_scheduler = require(script.Parent.Parent.overview_sche...
1,146
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local widget = require(script.widget) local source = vide.source local clea...
339
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/stack_bar.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local create = vide.create local indexes = vide.indexes local derive = vide.derive type stack_bar = { values: () -> {{value: number, color: Color3}}, selected: (number) -> () } return function(props: stack_bar) local total = derive(function() ...
236
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/systems/get_scheduler_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.Parent.Parent.modules.types) lo...
685
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/widget.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local convert_units = require(script.Parent.Parent.Parent.Parent.modules.convert_units) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local spawn_app = ...
2,513
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/init.luau
luau
.luau
local ContextActionService = game:GetService("ContextActionService") local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local spawn_app = require(script.Parent.Parent.spawn_app) local entity_widge...
799
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/highlight_workspace_entity.luau
luau
.luau
local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) type Context = { host: Player | "server", vm: number, id: number, enable_pick: () -> boolean, entity_hovering_over: (string) -> (), set_entity: (numbe...
201
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/obtain_query_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect local batch = vide.batch local cleanup = vide.cleanup ...
760
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/send_workspace_entity.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) type Context = { host: Player | "server", vm: number, id: number, enable_pick: () -> boolean, } return function(context: Context) if context.enable_pick() == false t...
152
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/validate_query.luau
luau
.luau
local Players = game:GetService("Players") local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect type Cont...
453
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/widget.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local tooltip = require(script.Parent.Parent.Parent.components.tool...
2,750
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.modules.types) local widge...
455
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/systems/replicate.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.Parent.Parent.modules.types) lo...
584
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/watch_tracker.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local tooltip = require(script.Parent.Parent.Parent.components.tooltip) local virtualscroller_horizontal =...
1,482
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/widget.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local watch_tracker = require(script.Parent.watch_tracker) type props = { host: "server" | Player, vm: ...
217
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/components/tooltip.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create local source = vide.source local cleanup = vide.clean...
352
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/components/virtualscroller_horizontal.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create local source = vide.source local values = vide.values local changed = vide.changed local effect = vide.effect local untrack = vide.untrack type can<T> = T | () -> ...
1,136
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/init.luau
luau
.luau
local entity = require(script.apps.entity) local home = require(script.apps.home) local overview_scheduler = require(script.apps.overview_scheduler) local registry = require(script.apps.registry) local spawn_app = require(script.spawn_app) return { apps = { home = home, entity = entity, scheduler = overview_sc...
96
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/spawn_app.luau
luau
.luau
local Players = game:GetService("Players") local vide = require(script.Parent.Parent.Parent.vide) local types = require(script.Parent.Parent.modules.types) local destroy_fn = {} local function unmount_all() for destroy in destroy_fn do destroy() end end local function spawn_app<T>(app: types.Application<T>, pro...
169
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/init.luau
luau
.luau
local jecs = require(script.Parent.jecs) local traffic_check = require(script.modules.traffic_check) local types = require(script.modules.types) local vm_id = require(script.modules.vm_id) local server = require(script.server) local public = require(script.server.public) local scheduler = require(script.server.schedule...
402
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/average.luau
luau
.luau
local function average(n: {number}) local sum = 0 for i, v in n do sum += v end return sum / #n end return average
40
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/convert_units.luau
luau
.luau
local function convert_units(unit: string, value: number): (string) local s = math.sign(value) value = math.abs(value) local prefixes = { [4] = "T", [3] ="G", [2] ="M", [1] = "k", [0] = " ", [-1] = "m", [-2] = "u", [-3] = "n", [-4] = "p" ...
253
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/hash_connector.luau
luau
.luau
local types = require(script.Parent.types) return function(connector: types.IncomingConnector | types.OutgoingConnector) return `{connector.host}\0{connector.from_vm or connector.to_vm}` end
39
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/loop.luau
luau
.luau
local scheduler = require(script.Parent.Parent.server.scheduler) type Array<T> = { T } export type System = (any, number) -> ...(any, number) -> () type GroupInfo = { i: number?, o: number? } type SystemGroup = { interval: number, offset: number, dt: number, [number]: { id: number, na...
597
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/net.luau
luau
.luau
--[[ net is a utility library designed to handle connections to other actors and the server for me. ]] local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local signal = require(script.Parent.signal) local vm_id...
1,346
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/queue.luau
luau
.luau
--- Licensed under MIT from centau_ri export type Queue<T...> = typeof(setmetatable( {} :: { add: (self: Queue<T...>, T...) -> (), clear: (self: Queue<T...>) -> (), iter: (self: Queue<T...>) -> () -> T..., }, {} :: { __len: (self: Queue<T...>) -> number, __iter: (self: Queue<T...>) -> () -> T..., } )) ty...
719
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/reverse_connector.luau
luau
.luau
--!nocheck local types = require(script.Parent.types) local function reverse(connector: types.IncomingConnector): types.OutgoingConnector return { host = connector.host, to_vm = connector.from_vm, } end return reverse
51
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/signal.luau
luau
.luau
--[[ A rudimentary signal class. Yielding may cause bugs. ]] local signal = {} signal.__index = signal type Connection = { disconnect: (any?) -> (), reconnect: (any?) -> () } export type Signal<T... = ...unknown> = { class_name: "Signal", connect: (Signal<T...>, callback: (T...) -> ()) -> Connection, wait: (S...
422
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/traffic_check.luau
luau
.luau
local Players = game:GetService("Players") --[[ a utility library to handle checking traffic and determining if the sender is permitted to send the given data. ]] local signal = require(script.Parent.signal) local traffic_check = {} local whitelist_player_to = {} local on_fail, fire = signal() --- A function tha...
553
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/types.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.jecs) type host = "client" | "server" export type IncomingConnector = { host: Player | "server", from_vm: number, to_vm: number } export type OutgoingConnector = { host: Player | "server", to_vm: number?, -- not specifying a vm makes it received by all from_vm: n...
800
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/videx.luau
luau
.luau
-------------------------------------------------------------------------------- -- videx/store.luau -------------------------------------------------------------------------------- local vide = require(script.Parent.Parent.Parent.vide) local source = vide.source local NULL = newproxy() local Store = {} --[=[ Create...
451
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/vm_id.luau
luau
.luau
--[[ Provides a unique identifier for a VM. This currently cannot be tested unless there is some parallel system for jest. ]] local SharedTableRegistry = game:GetService("SharedTableRegistry") local shared_table = SharedTableRegistry:GetSharedTable("_gorp_common_vm_count") shared_table.id = shared_table.id or 0 r...
79
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/init.luau
luau
.luau
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local loop = require(script.Parent.modules.loop) local remotes = require(script.Parent.modules.remotes) local traffic_check = require(script.Parent.modules.traffic_check) local vm_id = require(script.Parent.modules.vm_id) local...
224
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/public.luau
luau
.luau
--[[ anything in here is considered "public" and will be visible to jabby clients ]] local self = { updated = false, } :: { updated: boolean, [number]: any } return self
45
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/scheduler.luau
luau
.luau
local types = require(script.Parent.Parent.modules.types) local watch = require(script.Parent.watch) type SystemId = types.SystemId type SystemSettingData = types.SystemSettingData type SystemTag = types.SystemTag type SystemData = types.SystemData type ProcessingFrame = { started_at: number } type SystemFrame = typ...
1,270
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/entity.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.Parent.jecs) local lon = require(script.Parent.Parent.Parent.modules.lon) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.m...
1,930
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/mouse_pointer.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.Parent.jecs) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) local traffic_check = require(scrip...
1,487
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/ping.luau
luau
.luau
local Players = game:GetService("Players") local net = require(script.Parent.Parent.Parent.modules.net) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_con...
173
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_core.luau
luau
.luau
local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) local traffic_check = require(script.Parent.Parent.Parent.modules.traffic_check) local public = r...
448
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_registry.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.Parent.jecs) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) local traffic_check = require(scrip...
3,422
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_scheduler.luau
luau
.luau
--!nolint LocalShadow local hash = require(script.Parent.Parent.Parent.modules.hash_connector) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) lo...
747
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_system_watch.luau
luau
.luau
--[[ Handles the API for the system watch. Users will be able to add watches to their systems to track changes. Users will be able to learn about what actions a system performs on a jecs world through this. Hooked API's: component() entity() remove() clear() delete() add() set() ]] local jecs = require(script.Par...
1,233
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/watch.luau
luau
.luau
local types = require(script.Parent.Parent.modules.types) local world_hook = require(script.Parent.world_hook) local NIL = newproxy() type ChangeTypes = "remove" | "clear" | "delete" | "add" | "set" | "entity" | "component" type Changes = types.WatchLoggedChanges export type SystemWatch = { --- enables Lua Object N...
731
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/world_hook.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.jecs) local world = jecs.World.new() local function i_hook_onto(key: string, hooks: {(...any) -> ()}) local method: any = world[key] assert(typeof(method) == "function", "can only hook onto functions") -- create a new wrapper function local function run_hook(......
358
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jecs.lua
luau
.lua
return require(script.Parent.Parent["ukendio_jecs@0.9.0"]["jecs"])
21
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/pebble.lua
luau
.lua
return require(script.Parent.Parent["alicesaidhi_pebble@0.1.2"]["pebble"])
22
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/vide.lua
luau
.lua
return require(script.Parent.Parent["centau_vide@0.3.1"]["vide"])
19
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/accordion.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local container = require(script.Parent.Parent.util.container) local padding = require(script.Parent.Parent.util.padding) local typography = require(script.Parent.typography) local create = vide....
805
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/background.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local create = vide.create local read = vide.read type can<T> = (() -> T) | T type Background = { position: can<UDim2>?, size: can<UDim2>?, anchorpoint: can<UDim2>?, automaticsi...
261
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/checkbox.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local anim = require(script.Parent.Parent.Parent.util.anim) local theme = require(script.Parent.Parent.Parent.util.theme) local create = vide.create local read = vide.read type can<T> = (() -> T) | T type Background = { position: can<UDim2>?, size...
394
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/divider.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local create = vide.create local read = vide.read type can<T> = T | () -> T type props = { thickness: can<number>?, position: can<UDim2>?, } return function(props: props) return create "Fr...
140
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/pages.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local anim = require(script.Parent.Parent.Parent.util.anim) local theme = require(script.Parent.Parent.Parent.util.theme) local button = require(script.Parent.Parent.interactable.button) local container = require(script.Parent.Parent.util.container) local li...
702
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/pane.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local list = require(script.Parent.Parent.util.list) local padding = require(script.Parent.Parent.util.padding) local background = require(script.Parent.background) local typography = require(scri...
429
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/resizeable_bar.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local padding = require(script.Parent.Parent.util.padding) local rounded_frame = requi...
1,375
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/scroll_frame.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local create = vide.create type props = vide.vScrollingFrame return function(props: props) return create "ScrollingFrame" { AutoLocalize = false, ScrollBarThickness = 6, ScrollBarImageC...
111
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/snapping.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create local source = vide.source local cleanup = vide.cleanup local effect = vide.effect local action = vide.action local changed = vide.changed local untrack = vide.untrack ...
775
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/tablesheet.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local button = require(script.Parent.Parent.interactable.button) local rounded_frame = require(script.Parent.Parent.util.rounded_frame) local virtualscroller = require(script.Parent.Parent.util.vi...
1,089
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/typography.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local anim = require(script.Parent.Parent.Parent.util.anim) local theme = require(script.Parent.Parent.Parent.util.theme) local create = vide.create local read = vide.read type can<T> = T | () -> T type props = { size: can<UDim2>?, position: can<UDim2>?...
492
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/widget/borders.luau
luau
.luau
local GuiService = game:GetService("GuiService") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.Parent.util.theme) local container = requ...
1,673
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/widget/init.luau
luau
.luau
local GuiService = game:GetService("GuiService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util....
2,025
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/widget/topbar.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.Parent.util.theme) local list = require(script.Parent.Parent.Parent.util.list) local padding = require(script.Parent.Parent.Parent.util.padding) local rounded_frame = require(script.Parent.Parent.Pare...
906
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/graph/bargraph.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local container = require(script.Parent.Parent.util.container) local create = vide.create local indexes = vide.indexes local read = vide.read type can<T> = T | () -> T type props = { position:...
358
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/graph/graph.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local container = require(script.Parent.Parent.util.container) local create = vide.create local source = vide.source local action = vide.action local effect = vide.effect type can<T> = T | () ->...
236