Single module modding

This commit is contained in:
2026-11-14 12:18:41 -03:00
parent 605008f584
commit 313098892e
134 changed files with 919 additions and 924 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// fluids with their data (see FluidVariant in mod_api/shared.ts) and the rules shared scripts give them, which name,
// fluids with their data (see FluidVariant in mod_api/shared.ts) and the rules shared phases give them, which name,
// color and value a fluid by its data. each side has its own FluidRules from the same scripts, so the server's tooltips
// and a client's drawing agree
import type { FluidApi, FluidRules as Rules, FluidVariant } from "./mod_api/shared.ts";
@@ -44,7 +44,7 @@ export class FluidRules {
return this.#ask(fluid, "sell_value", "a number of 0 or more", valid) ?? json.base_sell_value;
}
// ctx.fluids for server and client scripts
// ctx.fluids for server and client phases
api(): FluidApi {
return {
ids: () => EverythingRegistry.entries("fluids").map(([id]) => id),