Fluid containers

This commit is contained in:
2026-10-25 15:02:31 -03:00
parent fc27771a92
commit 26b59a1899
24 changed files with 486 additions and 82 deletions
+13
View File
@@ -0,0 +1,13 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the fluids' rules from the mods' shared scripts on this client, the same as the server's (see common/fluids.ts), for
// drawing fluids and naming them in tooltips. its own module so those don't import client/mods.ts, which loads the mods
// and makes it again for each server's
import { FluidRules } from "$/common/fluids.ts";
export let fluid_rules = new FluidRules(() => undefined);
export function set_fluid_rules(rules: FluidRules) {
fluid_rules = rules;
}