14 lines
562 B
TypeScript
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;
|
|
}
|