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 |
|---|---|---|---|---|---|
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/server/commands/duration.ts | roblox-ts | .ts | import {
CenturionType,
Command,
CommandContext,
Register,
} from "@rbxts/centurion";
@Register()
export class DurationCommand {
@Command({
name: "duration",
description: "Prints the duration in seconds",
arguments: [
{
name: "duration",
description: "The duration to print",
type: CenturionTy... | 119 |
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/server/commands/echo.ts | roblox-ts | .ts | import {
CenturionType,
Command,
CommandContext,
Register,
} from "@rbxts/centurion";
@Register()
export class EchoCommand {
@Command({
name: "echo",
description: "Prints the given text",
arguments: [
{
name: "text",
description: "The text to print",
type: CenturionType.String,
suggestion... | 136 |
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/server/commands/info.ts | roblox-ts | .ts | import {
CenturionType,
Command,
CommandContext,
Group,
Register,
} from "@rbxts/centurion";
@Register({
groups: [
{
name: "info",
description: "View info about a user or the server",
},
{
name: "user",
description: "View info about a user",
parent: ["info"],
},
{
name: "server",
d... | 276 |
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/server/commands/kick.ts | roblox-ts | .ts | import {
CenturionType,
Command,
CommandContext,
Register,
} from "@rbxts/centurion";
@Register()
export class KickCommand {
@Command({
name: "kick",
description: "Kicks a player",
arguments: [
{
name: "player",
description: "Player to kick",
type: CenturionType.Player,
},
{
name: "... | 171 |
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/server/commands/kill.ts | roblox-ts | .ts | import {
CenturionType,
Command,
CommandContext,
Register,
} from "@rbxts/centurion";
import { Players } from "@rbxts/services";
@Register()
export class KillCommand {
@Command({
name: "kill",
description: "Kill players",
arguments: [
{
name: "players",
description: "Players to kill",
type: C... | 225 |
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/server/main.server.ts | roblox-ts | .ts | import { Centurion, CenturionLogLevel } from "@rbxts/centurion";
import { Players } from "@rbxts/services";
import { addAdmin, isAdmin, removeAdmin } from "./permissions";
let firstPlayer = true;
Players.PlayerAdded.Connect((player) => {
// Give the first player admin permissions
if (firstPlayer) {
addAdmin(player... | 178 |
paradoxuum/centurion | paradoxuum-centurion-8565c4e/test/src/test/spec.server.ts | roblox-ts | .ts | declare const _G: Map<unknown, unknown>;
_G.set("NOCOLOR", true);
import { runCLI } from "@rbxts/jest";
import { ReplicatedStorage } from "@rbxts/services";
function getTests(root: Instance) {
const folder = root.WaitForChild("TS").WaitForChild("__tests__");
assert(
classIs(folder, "Folder"),
"Could not find _... | 200 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/fixtures/input/luau.luau | luau | .luau | local function greet(name)
local message="Hello, "..name.."!"
print(message)
return message
end
local function add(a,b)
return a+b
end
local function processItems(items)
local result={}
for i=1,#items do
local item=items[i]
if item~=nil then
if type(item)=="string" then... | 468 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/fixtures/output/roblox-game/luau.luau | luau | .luau | local function greet(name)
local message = "Hello, " .. name .. "!"
print(message)
return message
end
local function add(a, b)
return a + b
end
local function processItems(items)
local result = {}
for i = 1, #items do
local item = items[i]
if item ~= nil then
if type(item) == "string" then
table.inse... | 479 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/scripts/gen-package-extensions.ts | roblox-ts | .ts | /**
* Renders `pnpm-plugin/extensions.mjs` into the `packageExtensions` block of
* `pnpm-workspace.yaml`, so this repository's own install needs no pnpmfile.
*
* Native `packageExtensions` runs through the same `readPackage` machinery the
* plugin hooks by hand, with the semantics the plugin reimplements:
* `crea... | 1,533 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/scripts/versiongen.ts | roblox-ts | .ts | import fs from "node:fs/promises";
import { parsePnpmWorkspaceYaml } from "pnpm-workspace-yaml";
import { dependenciesMap } from "../src/cli/constants.ts";
const collator = new Intl.Collator();
const names = new Set(["eslint", ...Object.values(dependenciesMap).flat()]);
const yaml = parsePnpmWorkspaceYaml(
await f... | 245 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/eslint/configs/naming.ts | roblox-ts | .ts | import { GLOB_DTS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from "../../globs.ts";
import { getTsConfig, interopDefault } from "../../utils.ts";
import type {
NamingConfig,
OptionsTypeScriptParserOptions,
OptionsTypeScriptWithTypes,
TypedFlatConfigItem,
} from "../types.ts";
const RBXTS_REACT = "@rbxts/react";
export a... | 2,689 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/eslint/configs/package-json.ts | roblox-ts | .ts | import { GLOB_PACKAGE_JSON, GLOB_PACKAGE_JSON_ROOT } from "../../globs.ts";
import { findWorkspaceRoot, interopDefault } from "../../utils.ts";
import { lazyPlugin } from "../lazy-plugin.ts";
import type {
OptionsHasRoblox,
OptionsProjectType,
OptionsStylistic,
TypedFlatConfigItem,
} from "../types.ts";
export asy... | 1,750 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/eslint/configs/pnpm.ts | roblox-ts | .ts | import { findUp } from "find-up-simple";
import fs from "node:fs/promises";
import { GLOB_PACKAGE_JSON } from "../../globs.ts";
import { ensurePackages, interopDefault } from "../../utils.ts";
import { lazyPlugin } from "../lazy-plugin.ts";
import type { OptionsIsInEditor, OptionsPnpm, TypedFlatConfigItem } from "../t... | 647 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/eslint/configs/test.ts | roblox-ts | .ts | import type PluginVitest from "@vitest/eslint-plugin";
import type PluginJest from "eslint-plugin-jest";
import { GLOB_TESTS, GLOB_TYPE_TESTS } from "../../globs.ts";
import { smallRulesTestRules } from "../../rules/small-rules.ts";
import { sonarjsTestRules } from "../../rules/sonarjs.ts";
import { jestRules, typeTe... | 1,339 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/globs.ts | roblox-ts | .ts | // cspell:words cjsx lintable
export const GLOB_ROOT = [
"*",
"packages/*/*",
"apps/*/*",
"libs/*/*",
"packages/*/*/*",
"apps/*/*/*",
"libs/*/*/*",
];
export const GLOB_ROOT_SRC = [
"packages/*/*.{,c,m}[jt]s{,x}",
"apps/*/*.{,c,m}[jt]s{,x}",
"libs/*/*.{,c,m}[jt]s{,x}",
"packages/*/*/*.{,c,m}[jt]s{,x}",
"ap... | 1,664 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/lint-cli/lib/cache/package-hash.ts | roblox-ts | .ts | // cspell:words typeaware unparseable buildinfo
import crypto from "node:crypto";
import path from "node:path";
import { isRecord } from "../../../guards.ts";
import { findWorkspaceRoot } from "../files/workspace.ts";
import { stableStringify } from "../stable-json.ts";
import { readFileIfPresent } from "../state.ts";... | 800 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/lint-cli/lib/files/collect.ts | roblox-ts | .ts | // cspell:words lintable pathspec
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
import picomatch from "picomatch";
import { normalizePath } from "../cache/entries.ts";
import { toPosix } from "../paths.ts";
import {
CACHE_BUST_PATTERNS,
ESLINT_CONFIG_FILE_... | 3,432 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/lint-cli/lib/files/workspace.ts | roblox-ts | .ts | // cspell:words unparseable
import fs from "node:fs";
import path from "node:path";
import picomatch from "picomatch";
import { isRecord } from "../../../guards.ts";
import { toPosix } from "../paths.ts";
import { readFileIfPresent } from "../state.ts";
/**
* Markers that identify a repository or pnpm-workspace root... | 2,445 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/lint-cli/lib/state.ts | roblox-ts | .ts | import fs from "node:fs";
import path from "node:path";
import process from "node:process";
/**
* Directory (relative to the project root) where the CLI keeps its persisted
* state. Lives under `node_modules/.cache` so it is discarded with the
* dependency tree and never committed.
*/
const CACHE_DIRECTORY = path.... | 1,797 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/lint-cli/lib/typescript/gate.ts | roblox-ts | .ts | // cspell:words buildinfo mtimes relativised
import crypto from "node:crypto";
import path from "node:path";
import { MANIFEST_FIELDS, manifestSubset } from "../cache/package-hash.ts";
import { findWorkspaceMembers, findWorkspaceRoot } from "../files/workspace.ts";
import { stableStringify } from "../stable-json.ts";
... | 1,001 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/oxlint/configs/react.ts | roblox-ts | .ts | import { GLOB_JSX, GLOB_TSX } from "../../globs.ts";
import type { ReactRuleOptions } from "../../rules/react.ts";
import { reactRules } from "../../rules/react.ts";
import type {
ConfigSettings,
OptionsFiles,
OptionsHasRoblox,
OptionsOverrides,
} from "../../types.ts";
import type { OxlintRules, TypedOxlintConfigI... | 746 |
christopher-buss/eslint-config | christopher-buss-eslint-config-694494e/src/rules/test.ts | roblox-ts | .ts | import type {
OptionsHasRoblox,
OptionsIsInEditor,
OptionsStylistic,
TypedFlatConfigItem,
} from "../types.ts";
export interface JestRuleOptions extends OptionsHasRoblox, OptionsIsInEditor, OptionsStylistic {
extended?: boolean;
}
export interface VitestRuleOptions extends OptionsIsInEditor, OptionsStylistic {
... | 2,837 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/components/character.ts | roblox-ts | .ts | import { Component } from "@flamework/components";
import { OnStart } from "@flamework/core";
import { Janitor } from "@rbxts/janitor";
import { CharacterController } from "client/controllers/character-controller";
import { PlayerAtom } from "client/controllers/player-controller";
import { Character } from "shared/comp... | 482 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/controllers/character-controller.ts | roblox-ts | .ts | import { Components } from "@flamework/components";
import { Controller, OnStart } from "@flamework/core";
import { promiseR15 } from "@rbxts/character-promise";
import Signal from "@rbxts/rbx-better-signal";
import { ClientCharacter } from "client/components/character";
import { Multiplace } from "shared/decorators/co... | 265 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/controllers/loading-controller.ts | roblox-ts | .ts | import { Controller } from "@flamework/core";
import { ContentProvider, ReplicatedStorage, Workspace } from "@rbxts/services";
import { PlayerGui } from "shared/utilities/constants";
import { OnDataReplicated } from "./player-controller";
@Controller({})
export class LoadingController implements OnDataReplicated {
pr... | 300 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/controllers/mouse-hover-controller.ts | roblox-ts | .ts | import { BaseComponent } from "@flamework/components";
import { Controller, Modding, OnRender, OnStart } from "@flamework/core";
import { UserInputService, Workspace } from "@rbxts/services";
import { OnMouseHoverEnd, OnMouseHoverStart } from "client/event-hooks/on-mouse-hovered";
import { LocalPlayer } from "shared/ut... | 939 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/controllers/player-controller.ts | roblox-ts | .ts | /* eslint-disable @typescript-eslint/no-unused-expressions */
import { Controller, Modding, OnInit } from "@flamework/core";
import { subscribe } from "@rbxts/charm";
import { client, SyncPayload } from "@rbxts/charm-sync";
import { Events } from "client/network";
import { InjectType } from "shared/decorators/field/Inj... | 1,245 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/controllers/ui-controller.tsx | roblox-ts | .tsx | import { Controller, OnStart } from "@flamework/core";
import { subscribe } from "@rbxts/charm";
import React from "@rbxts/react";
import { createPortal, createRoot } from "@rbxts/react-roblox";
import { StarterGui } from "@rbxts/services";
import { App } from "client/ui/app";
import RootProducer from "client/ui/store"... | 342 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/runtime.client.ts | roblox-ts | .ts | import { Flamework, Modding } from "@flamework/core";
import { Start } from "@rbxts/better-refx";
import { Centurion } from "@rbxts/centurion";
import { CenturionUI } from "@rbxts/centurion-ui";
import Log, { Logger } from "@rbxts/log";
import { StartFlameworkUtils } from "shared/flamework-utils";
import { LoadGameData... | 237 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/app/app-context.ts | roblox-ts | .ts | import { createContext, useContext } from "@rbxts/react";
import { ScalerApi } from "@rbxts/ui-scaler";
interface AppContext {
ScreenGui: ScreenGui;
PlayerGui: PlayerGui;
ScalerApi: ScalerApi;
}
export const AppContext = createContext<AppContext>(undefined!);
export const useAppContext = () => {
const context = ... | 126 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/app/index.tsx | roblox-ts | .tsx | import React, { useState } from "@rbxts/react";
import { ReflexProvider } from "@rbxts/react-reflex";
import { withScaler } from "client/wrappers/with-scaler";
import { GetPlaceName } from "shared/places";
import { PlayerGui } from "shared/utilities/constants";
import { useScalerApi } from "../hooks/scaler/context";
im... | 314 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/app/places/game.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
export const AppGameSlice = () => {
return <></>;
};
| 23 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/quick-story.tsx | roblox-ts | .tsx | import React, { createElement, PropsWithChildren, useEffect, useRef, useState } from "@rbxts/react";
import * as ReactRoblox from "@rbxts/react-roblox";
import { CreateReactStory } from "@rbxts/ui-labs";
import { ReturnControls } from "@rbxts/ui-labs/src/ControlTypings/Typing";
import { InferProps, StoryCreation } from... | 465 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/reflex-hooks.ts | roblox-ts | .ts | /* eslint-disable prettier/prettier */
import { UseSelectorHook, useSelector, useProducer } from "@rbxts/react-reflex";
import { RootProducer, RootState } from "../store";
import { useBinding, useEffect } from "@rbxts/react";
export const useAppSelector: UseSelectorHook<RootProducer> = useSelector;
export const useApp... | 153 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/scaler/context.ts | roblox-ts | .ts | import { createContext, useContext } from "@rbxts/react";
import { ScalerApi } from "@rbxts/ui-scaler";
export const ScalerContext = createContext<ScalerApi>(undefined!);
export function useScalerApi() {
const context = useContext(ScalerContext);
assert(context, "ScalerContext not found. Did you call outside of Sca... | 79 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-button-state.ts | roblox-ts | .ts | import { useEventListener, useLatest } from "@rbxts/pretty-react-hooks";
import { useMemo, useState } from "@rbxts/react";
import { UserInputService } from "@rbxts/services";
import { setTimeout } from "@rbxts/set-timeout";
import { useInputDevice } from "./use-input-device";
export interface ButtonEvents {
onMouseD... | 434 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-component-state.ts | roblox-ts | .ts | /* eslint-disable @typescript-eslint/no-explicit-any */
import { useEffect, useState } from "@rbxts/react";
export interface LikeSharedComponent<S> {
GetState(): S;
Subscribe(listener: (state: S, previousState: S) => void): () => void;
Subscribe<T>(selector: (state: S) => T, listener: (state: T, previousState: T) =... | 194 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-components.ts | roblox-ts | .ts | import { Components } from "@flamework/components";
import { AbstractConstructorRef } from "@flamework/components/out/utility";
import { Janitor } from "@rbxts/janitor";
import { useDeferState } from "@rbxts/pretty-react-hooks";
import { useEffect } from "@rbxts/react";
import { useFlameworkDependency } from "./use-fla... | 269 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-flamework-depedency.ts | roblox-ts | .ts | import { Dependency, Flamework } from "@flamework/core";
import { IntrinsicSymbolId } from "@flamework/core/out/utility";
import { useMemo } from "@rbxts/react";
/** @metadata macro {@link Flamework.resolveDependency intrinsic-flamework-rewrite} */
export function useFlameworkDependency<T>(id?: IntrinsicSymbolId<T>): ... | 92 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-input-box.ts | roblox-ts | .ts | import { useLatest, useMountEffect } from "@rbxts/pretty-react-hooks";
import { useBinding, useRef } from "@rbxts/react";
export function useInputBox(filter?: (text: string) => string) {
const [content, setContent] = useBinding("");
const onFilter = useLatest(filter);
const ref = useRef<TextBox>();
useMountEffect... | 202 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-motion.ts | roblox-ts | .ts | import { useLatest, useMountEffect } from "@rbxts/pretty-react-hooks";
import { Binding, useBinding, useMemo } from "@rbxts/react";
import { Motion, MotionGoal, createMotion } from "@rbxts/ripple";
export function useMotion(
initialValue: number,
onComplete?: (lastValue: number) => void,
): LuaTuple<[Binding<number>... | 273 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-page.tsx | roblox-ts | .tsx | import { useBindingListener } from "@rbxts/pretty-react-hooks";
import React, { useBinding, useEffect } from "@rbxts/react";
import { setTimeout } from "@rbxts/set-timeout";
import { Pages } from "../settings/pages";
import { SelectPage } from "../store/slices/page-slice";
import { useAppSelector, useAppSelectorBinding... | 388 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-players.ts | roblox-ts | .ts | import { useEventListener, useMountEffect } from "@rbxts/pretty-react-hooks";
import { useEffect, useState } from "@rbxts/react";
import { Players } from "@rbxts/services";
import { LocalPlayer } from "shared/utilities/constants";
export function usePlayers() {
const [players, setPlayers] = useState(Players.GetPlayer... | 142 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-progress-bar.ts | roblox-ts | .ts | import { useMotion } from "@rbxts/pretty-react-hooks";
import { useEffect } from "@rbxts/react";
import { Springs } from "shared/utilities/constants";
export function useProgressBar(
value: number,
maxValue: number,
style: keyof typeof Springs = "default",
onComplete?: (v: number) => void,
onStep?: (v: number) =>... | 188 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-rainbow.ts | roblox-ts | .ts | import { BindingOrValue, getBindingValue, useEventListener } from "@rbxts/pretty-react-hooks";
import { useBinding } from "@rbxts/react";
import { RunService } from "@rbxts/services";
const colors = [
Color3.fromRGB(255, 0, 4),
Color3.fromRGB(255, 149, 0),
Color3.fromRGB(251, 255, 6),
Color3.fromRGB(28, 255, 26),
... | 519 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-random.ts | roblox-ts | .ts | import { useRef } from "@rbxts/react";
export function useRandom(seed?: number) {
const ref = useRef<Random>();
!ref.current && (ref.current = seed ? new Random(seed) : new Random());
return ref.current;
}
| 51 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-rotation.ts | roblox-ts | .ts | import { useEventListener } from "@rbxts/pretty-react-hooks";
import { useBinding } from "@rbxts/react";
import { RunService } from "@rbxts/services";
export function useRotation(speed: number, isReverse = false) {
const [rotation, setRotation] = useBinding(0);
useEventListener(RunService.Heartbeat, (dt) => {
let... | 146 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/hooks/use-timestamp.ts | roblox-ts | .ts | import { useEventListener, getBindingValue, BindingOrValue } from "@rbxts/pretty-react-hooks";
import { useBinding } from "@rbxts/react";
import { RunService } from "@rbxts/services";
import { GetCurrentTime, GetDifferenceNowTime, round } from "shared/utilities/function-utilities";
export function useTimestamp(endTime... | 179 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/settings/apps.ts | roblox-ts | .ts | import { FunctionComponent } from "@rbxts/react";
import { PlaceNames } from "shared/places";
import { AppGameSlice } from "../app/places/game";
export const Apps: Partial<Record<PlaceNames, { Component: FunctionComponent; IgnoreGuiInset: boolean }>> = {
Game: { Component: AppGameSlice, IgnoreGuiInset: true },
};
| 78 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/store/index.ts | roblox-ts | .ts | import { InferState, InferActions, combineProducers } from "@rbxts/reflex";
import { Slices } from "./slices";
export type RootState = InferState<typeof RootProducer>;
export type RootActions = InferActions<typeof RootProducer>;
export type RootProducer = typeof RootProducer;
export const RootProducer = combineProduce... | 80 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/store/slices/game-data/index.ts | roblox-ts | .ts | import { createProducer } from "@rbxts/reflex";
import { GameDataSchema } from "shared/schemas/game-data";
import { DeepCloneTable } from "shared/utilities/object-utilities";
export const gameDataSlice = createProducer(DeepCloneTable(GameDataSchema), {});
| 59 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/store/slices/page-slice.ts | roblox-ts | .ts | import { createProducer } from "@rbxts/reflex";
import { Pages } from "client/ui/settings/pages";
import { RootState } from "..";
const initState = {
Page: Pages.None,
PreviosPage: Pages.None,
IsLocked: false,
};
export const PageSlice = createProducer(initState, {
SetPage: (state, page: Pages) => {
if (state.I... | 305 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/store/slices/player-data/index.ts | roblox-ts | .ts | import { createProducer } from "@rbxts/reflex";
import { PlayerDataSchema } from "shared/schemas/player-data";
import { DeepCloneTable } from "shared/utilities/object-utilities";
import { DeepWritable } from "types/utility";
export const playerDataSlice = createProducer(
DeepCloneTable(PlayerDataSchema) as DeepWritab... | 80 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/ui/utility-components/canvas.tsx | roblox-ts | .tsx | import React, { PropsWithChildren, Ref, RefObject, forwardRef } from "@rbxts/react";
export const Canvas = forwardRef(
(
props: { Key?: string; ref?: RefObject<ScrollingFrame>; ignoreGuiInset?: boolean } & PropsWithChildren,
ref: Ref<ScreenGui>,
) => {
return (
<screengui
ZIndexBehavior={Enum.ZIndexBeha... | 149 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/wrappers/with-scaler.tsx | roblox-ts | .tsx | import React, { FunctionComponent } from "@rbxts/react";
import { useScaler } from "@rbxts/ui-scaler";
import { ScalerContext } from "client/ui/hooks/scaler/context";
const BASE_RESOLUTION = new Vector2(1920, 1080);
export function withScaler<P extends {}>(Component: FunctionComponent<P>) {
return (props: P) => {
... | 116 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/client/wrappers/with-unscale.tsx | roblox-ts | .tsx | import { BindingOrValue, mapBinding } from "@rbxts/pretty-react-hooks";
import React, { FunctionComponent } from "@rbxts/react";
import { useScalerApi } from "client/ui/hooks/scaler/context";
export function withUnscale<P extends { position: BindingOrValue<UDim2> }>(Component: FunctionComponent<P>) {
return (props: P... | 129 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/classes/player-transaction.ts | roblox-ts | .ts | import { ITransactEntity, Transaction } from "@rbxts/transact";
import { IPlayerInteraction, PlayerComponent } from "server/components/player-component";
import { logAssert } from "shared/utilities/function-utilities";
const COUNT_REPEATS = 5;
export class PlayerTransaction implements ITransactEntity {
private stati... | 401 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/commands/echo.ts | roblox-ts | .ts | import { CenturionType, Command, CommandContext, Register } from "@rbxts/centurion";
@Register()
class EchoCommand {
@Command({
name: "echo",
description: "Displays text",
arguments: [
{
name: "text",
description: "The text to display",
type: CenturionType.String,
},
],
})
echo(ctx: Comman... | 107 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/components/character.ts | roblox-ts | .ts | import { Component } from "@flamework/components";
import { OnStart } from "@flamework/core";
import { InferSharedComponentState } from "@rbxts/shared-components-flamework/out/types";
import { Collisions } from "shared/collisions";
import { Character } from "shared/components/character";
@Component({})
export class Se... | 130 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/game-utilities/filter-worspace-base-parts.ts | roblox-ts | .ts | export function filterWorkspaceBaseParts(instances: Instance[]) {
return instances.filter(
(instance) => instance.IsA("BasePart") && instance.FindFirstAncestorOfClass("Workspace") !== undefined,
) as BasePart[];
}
| 48 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/Budget.luau | luau | .luau | local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Constants = require(script.Parent.Constants)
local function defaultBudget()
local budgets = {}
local queues = {}
for requestType, options in Constants.REQUEST_BUDGETS do
budgets[requestType] = options.INITIAL_BUDGE... | 839 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/Constants.luau | luau | .luau | return {
MAX_NAME_LENGTH = 50,
MAX_SCOPE_LENGTH = 50,
MAX_KEY_LENGTH = 50,
MAX_THROTTLE_QUEUE_SIZE = 30, -- The amount of requests that can be throttled per request type at once before the request will error.
BUDGET_UPDATE_INTERVAL = 1,
GET_CACHE_DURATION = 5,
REQUEST_BUDGETS = {
[Enum.DataStoreRequestType... | 360 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/DataStoreKeyInfo.luau | luau | .luau | local DataStoreKeyInfo = {}
DataStoreKeyInfo.__index = DataStoreKeyInfo
function DataStoreKeyInfo.new(createdTime, updatedTime, version, userIds, metadata)
local userIdsType = typeof(userIds)
if userIdsType ~= "nil" and userIdsType ~= "table" then
error(`expected userIds to be a table or nil, got {userIdsType}`)
... | 284 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/GlobalDataStore.luau | luau | .luau | local Constants = require(script.Parent.Constants)
local DataStoreKeyInfo = require(script.Parent.DataStoreKeyInfo)
local validateString = require(script.Parent.validateString)
local function copyDeep(value)
if typeof(value) ~= "table" then
return value
end
local copy = {}
for a, b in value do
copy[a] = copy... | 556 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/SimulatedErrors.luau | luau | .luau | local SimulatedErrors = {}
SimulatedErrors.__index = SimulatedErrors
function SimulatedErrors.new()
return setmetatable({
errorsToSimulate = 0,
}, SimulatedErrors)
end
function SimulatedErrors:addSimulatedErrors(amount)
assert(typeof(amount) == "number", "`amount` must be a number")
self.errorsToSimulate += am... | 137 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/SimulatedYield.luau | luau | .luau | local SimulatedYield = {}
SimulatedYield.__index = SimulatedYield
function SimulatedYield.new()
return setmetatable({
yielding = false,
threads = {},
}, SimulatedYield)
end
function SimulatedYield:yield()
if not self.yielding then
return
end
table.insert(self.threads, coroutine.running())
coroutine.yiel... | 150 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/init.luau | luau | .luau | local RunService = game:GetService("RunService")
local Budget = require(script.Budget)
local Constants = require(script.Constants)
local GlobalDataStore = require(script.GlobalDataStore)
local SimulatedErrors = require(script.SimulatedErrors)
local SimulatedYield = require(script.SimulatedYield)
local validateString =... | 397 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/mock-datastore/validateString.luau | luau | .luau | local function validateString(name, value, maxLength)
if #value == 0 then
error(string.format("`%s` can't be empty string", name))
elseif #value > maxLength then
error(string.format("`%s` is too long (exceeds %d characters)", name, maxLength))
end
end
return validateString
| 72 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/runtime.server.ts | roblox-ts | .ts | import { Flamework, Modding } from "@flamework/core";
import { Centurion } from "@rbxts/centurion";
import Log, { Logger } from "@rbxts/log";
import TestEZ from "@rbxts/testez";
import { StartFlameworkUtils } from "shared/flamework-utils";
import { GetPlaceName, IS_ENABLED_MULTIPLE_PLACES } from "shared/places";
import... | 343 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/services/data-store-service.ts | roblox-ts | .ts | import { Flamework, OnInit, OnStart, Service } from "@flamework/core";
import type { Collection, CollectionOptions, CollectionSchema, LapisConfig } from "@rbxts/lapis";
import { DataStoreService, ReplicatedStorage, RunService } from "@rbxts/services";
import DataStoreServiceMock from "server/mock-datastore";
import { D... | 858 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/services/player-service.ts | roblox-ts | .ts | /* eslint-disable @typescript-eslint/no-explicit-any */
import { Components } from "@flamework/components";
import { Flamework, Modding, OnStart, Service } from "@flamework/core";
import { Logger } from "@rbxts/log";
import Signal from "@rbxts/rbx-better-signal";
import { Players, StarterGui } from "@rbxts/services";
i... | 1,196 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/utility-for-tests/index.ts | roblox-ts | .ts | import { BaseComponent } from "@flamework/components";
import { Dependency, Flamework, Modding, OnInit, OnStart, Service } from "@flamework/core";
import Log, { Logger } from "@rbxts/log";
import { RunService } from "@rbxts/services";
import { PlayerComponent } from "server/components/player-component";
import { StartF... | 542 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/server/utility-for-tests/test-mode.ts | roblox-ts | .ts | import Signal from "@rbxts/rbx-better-signal";
import { IS_STUDIO } from "shared/utilities/constants";
let isTestMode = IS_STUDIO;
const signal = new Signal();
export function IsTestMode() {
return isTestMode;
}
export function SetTestMode(value: boolean) {
isTestMode = value;
if (!value) {
signal.Fire();
}
}... | 104 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/collisions.ts | roblox-ts | .ts | import Object from "@rbxts/object-utils";
import { PhysicsService, RunService } from "@rbxts/services";
export enum Collisions {
Player = "Player",
}
if (RunService.IsServer()) {
Object.keys(Collisions).forEach((key) => {
PhysicsService.RegisterCollisionGroup(key);
});
PhysicsService.CollisionGroupSetCollidabl... | 88 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/components/character.ts | roblox-ts | .ts | import { BaseComponent, Component } from "@flamework/components";
import { CharacterRigR15 } from "@rbxts/character-promise";
@Component()
export class Character extends BaseComponent<{}, CharacterRigR15> {}
| 48 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/decorators/constructor/config-decorator.ts | roblox-ts | .ts | /* eslint-disable @typescript-eslint/no-explicit-any */
import { Constructor } from "@flamework/core/out/utility";
import Object from "@rbxts/object-utils";
import { $keys } from "rbxts-transformer-keys";
import { Configs, LuaConfigs } from "shared/game-data/configs";
export interface BaseConfig<T = object> {
Constru... | 701 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/decorators/constructor/player-module-decorator.ts | roblox-ts | .ts | import { Reflect } from "@flamework/core";
import { Constructor } from "@flamework/core/out/utility";
import { Draft } from "@rbxts/immut/src/types-external";
import { PlayerData, playerData } from "shared/schemas/player-data-types";
/** @server */
export interface OnSendData {
/** @hidden */
OnSendData(data: Draft<... | 237 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/decorators/method/only-client.ts | roblox-ts | .ts | import { RunService } from "@rbxts/services";
export function OnlyClient(object: object, propertyName: string, description: TypedPropertyDescriptor<Callback>) {
const method = description.value;
description.value = function (this, ...args: unknown[]) {
assert(RunService.IsClient(), `Method ${propertyName} can't b... | 86 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/decorators/method/only-server.ts | roblox-ts | .ts | import { RunService } from "@rbxts/services";
export function OnlyServer(object: object, propertyName: string, description: TypedPropertyDescriptor<Callback>) {
const method = description.value;
description.value = function (this, ...args: unknown[]) {
assert(RunService.IsServer(), `Method ${propertyName} can't b... | 86 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/effect-controller.ts | roblox-ts | .ts | import { Modding } from "@flamework/core";
import { Constructor } from "@flamework/core/out/utility";
import { RunService } from "@rbxts/services";
import { DependenciesContainer } from "./utilities/dependencies-container";
import { Event } from "./utilities/event";
import { CreateIdGenerator } from "./utilities/functi... | 1,087 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/network.ts | roblox-ts | .ts | import { Networking } from "@flamework/networking";
import { Atom } from "@rbxts/charm";
import { createBinarySerializer } from "@rbxts/flamework-binary-serializer";
import { IAction } from "types/IAction";
import { PlayerData } from "./schemas/player-data-types";
import { GameData } from "./schemas/game-data-types";
... | 312 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/places.ts | roblox-ts | .ts | import { Flamework } from "@flamework/core";
import Object from "@rbxts/object-utils";
/* eslint-disable prettier/prettier */
export const IS_ENABLED_MULTIPLE_PLACES = false;
export enum Place {
Game = "Game",
}
export const SettedPlaces = new Set(Object.keys(Place));
export type PlaceNames = keyof typeof Place;
co... | 144 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/singletons/data-collection.ts | roblox-ts | .ts | /* eslint-disable @typescript-eslint/no-unused-expressions */
/* eslint-disable @typescript-eslint/no-require-imports */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Flamework, Modding } from "@flamework/core";
import { ReplicatedStorage } from "@rbxts/services";
import { t } from "@rbxts/t";
import... | 1,141 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/abbreviate-numbers.ts | roblox-ts | .ts | import Abbreviator from "@rbxts/abbreviate";
const Suffixs = [
"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",
... | 381 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/atom-utility.ts | roblox-ts | .ts | /* eslint-disable @typescript-eslint/no-explicit-any */
import { Atom, Molecule, atom, observe, subscribe } from "@rbxts/charm";
import { None, produce } from "@rbxts/immut";
import { Draft } from "@rbxts/immut/src/types-external";
import type { PlayerAtom } from "server/components/player-component";
import { PlayerDat... | 998 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/format-json/init.luau | luau | .luau | local function add_indent(level)
return string.rep(" ", level)
end
local function formatJson(json_str)
local result = {}
local level = 0
local in_string = false
for i = 1, #json_str do
local char = json_str:sub(i, i)
local prev_char = json_str:sub(i - 1, i - 1)
if char ... | 288 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/game-utility.ts | roblox-ts | .ts | import { setInterval } from "@rbxts/set-timeout";
import type { PlayerComponent } from "server/components/player-component";
import { PlayerInfo } from "types/player/player-info";
export function ToPlayerInfo(player: Player | PlayerComponent): PlayerInfo {
return {
Name: player.Name,
DisplayName: player.DisplayNa... | 191 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/math.ts | roblox-ts | .ts | import { lerp } from "@rbxts/pretty-react-hooks";
export function lerpStrict(a: number, b: number, t: number) {
return math.clamp(lerp(a, b, t), math.min(a, b), math.max(a, b));
}
export function mapStrict(value: number, min: number, max: number, newMin: number, newMax: number) {
if (min === max) {
return newMin;... | 413 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/player.ts | roblox-ts | .ts | import { Components } from "@flamework/components/out/components";
import { Dependency } from "@flamework/core/out/flamework";
import { CharacterRigR15, promiseR15 } from "@rbxts/character-promise";
import { Players } from "@rbxts/services";
import type { PlayerComponent } from "server/components/player-component";
imp... | 835 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/repair-data-from-draft.lua | luau | .lua | local CLONE = "_clone"
local BASE = "_base"
local function RepairDataFromDraft<T>(draft: T): T?
if typeof(draft) ~= "table" then
return draft
end
if draft[CLONE] == nil and draft[BASE] == nil then
for key, value in draft do
local val = RepairDataFromDraft(value)
if not val then continue end
draft[key]... | 163 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/setup-logger.ts | roblox-ts | .ts | import Log, { LogEvent, LogLevel, Logger } from "@rbxts/log";
import { IS_CLIENT, IS_DEV } from "./constants";
import { ILogEventSink } from "@rbxts/log/out/Core";
import { PlainTextMessageTemplateRenderer, MessageTemplateParser } from "@rbxts/message-templates";
const LOG_LEVEL = IS_DEV ? LogLevel.Debugging : LogLeve... | 546 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/sound-utilities.ts | roblox-ts | .ts | import { SoundService } from "@rbxts/services";
interface SoundOption {
parent?: Instance;
destroyAfterPlay?: boolean;
useOriginalSound?: boolean;
soundGroup?: "Movement" | "BackgroundMusic" | "Ambient";
}
export function PlaySound(sound: Sound, options: SoundOption = {}) {
options.destroyAfterPlay = options.des... | 186 |
Tesmi-Develop/roblox-ts-project-template | Tesmi-Develop-roblox-ts-project-template-adb5863/src/shared/utilities/ui.ts | roblox-ts | .ts | import { MutableRefObject, RefCallback } from "@rbxts/react";
export function MultiplyUDim2(UDim: UDim2, Multiplier: number) {
return new UDim2(
UDim.X.Scale * Multiplier,
UDim.X.Offset * Multiplier,
UDim.Y.Scale * Multiplier,
UDim.Y.Offset * Multiplier,
);
}
export function CreateAssetUrl(id: string | numb... | 388 |
OverlineJunior/toucan | OverlineJunior-toucan-0539fbb/src/index.ts | roblox-ts | .ts | import {
AddedByPlugin,
ChildOf,
Component,
Internal,
Label,
Persistent,
Resource,
ThirdParty,
Wildcard,
} from './handle'
import { Plugin, ScheduleComponent as Schedule, System } from './scheduler'
export {
type ComponentHandle,
component,
type EntityHandle,
entity,
Handle,
type InferValue,
type Infer... | 246 |
OverlineJunior/toucan | OverlineJunior-toucan-0539fbb/src/pair.ts | roblox-ts | .ts | import { pair as jecsPair } from '@rbxts/jecs'
import type { ComponentHandle, EntityHandle, Handle, RawId } from './handle'
import { VALUE_SYMBOL } from './handle'
import { ECS_ENTITY_MASK, ECS_PAIR_OFFSET, world } from './world'
/**
* Due to Roblox's max of 53 bits of integer precision, Jecs' pairs use a stripped ID... | 1,084 |
OverlineJunior/toucan | OverlineJunior-toucan-0539fbb/src/scheduler/index.ts | roblox-ts | .ts | export { ScheduleComponent } from './schedule'
export {
Plugin,
type PluginFn,
type RunServiceSchedules,
type Scheduler,
type Schedules,
type StartupSchedules,
scheduler,
type UpdateSchedules,
} from './scheduler'
export {
type SetConfig,
System,
type SystemConfig,
type SystemFn,
type SystemSet,
systemSet... | 77 |
OverlineJunior/toucan | OverlineJunior-toucan-0539fbb/src/world.ts | roblox-ts | .ts | import * as jecs from '@rbxts/jecs'
import type { RawId } from './handle'
type UnsafeWorld = jecs.World & {
entity_index: {
dense_array: jecs.Entity[]
sparse_array: {
archetype: {
types: number[]
}
}[]
}
}
export const ECS_PAIR_OFFSET = 2 ** 48
export const ECS_ENTITY_MASK = 0x1000000
export const ... | 237 |
OverlineJunior/toucan | OverlineJunior-toucan-0539fbb/test/src/server/runTests.server.ts | roblox-ts | .ts | import { TestRunner } from '@rbxts/lunit'
import { ServerScriptService } from '@rbxts/services'
new TestRunner([ServerScriptService.server], '.+%.test$').run()
| 43 |
Neohertz/comet | Neohertz-comet-bd2e945/src/modules/button.ts | roblox-ts | .ts | import Signal from "@rbxts/lemon-signal";
import { CometError } from "../core/enum";
import { CometState } from "./../types/comet.d";
/**
* Toolbar button instance with many great features.
*/
export class Button {
private button: PluginToolbarButton;
private buttonState: boolean;
private clickEvent: Signal;
c... | 451 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.