Files
bworld/mods/dev/scripts/main.ts
T
2026-11-22 16:19:10 -03:00

16 lines
564 B
TypeScript

// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// tools for making the game from inside it. it depends on no mod, so it can be added to any game
import type { ClientContext } from "cubi/client";
import type { ServerContext } from "cubi/server";
import { register_schematic_editor, register_schematic_editor_screen } from "./schematic_editor.ts";
export function server(ctx: ServerContext) {
register_schematic_editor(ctx);
}
export function client(ctx: ClientContext) {
register_schematic_editor_screen(ctx);
}