Files
bworld/client/fluid_rules.ts
T
2026-11-14 12:18:41 -03:00

14 lines
562 B
TypeScript

// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the fluids' rules from the mods' shared phases 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;
}