mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
- Clicks: when two tools want the globe's clicks, the newest takes them and the older is told and turns itself off; a click is decided when it arrives, and ambient selection fires only when no tool holds the pointer. The "map is busy" paths and their strings are removed. - Recession: the limb fade is shared (src/render/recession.js) and reaches icon and model sets through SetSpec.recede; tuning applies on the next frame. - Display panel groups are published through src/ui/displayGroups.js; the Weather group and src/viewWeather.js are removed. - Draw port: a set whose icons only move is moved in place, and models that did not change are not restyled each frame, so moving fleets cost what they did when drawn directly; an untinted, fully opaque model is drawn without a colour. - Conformance: input.lease.lost checks the new lease inside onLost and reports a throwing onLost; draw.sets.recede covers model sets. - QA scripts read the renderer host instead of internals the seam replaced.
15 lines
485 B
TypeScript
15 lines
485 B
TypeScript
import type { WeatherSettings } from './contract/globe';
|
|
|
|
/** All clear, no wind: what a renderer draws until weather is set. */
|
|
export const CLEAR_WEATHER: Readonly<WeatherSettings>;
|
|
|
|
/**
|
|
* `current` with `patch` applied as `globe.weather.set` applies it, as a new
|
|
* object: each strength given is clamped to 0..1, one not given is kept;
|
|
* `wind` is taken whole.
|
|
*/
|
|
export function mergeWeather(
|
|
current: WeatherSettings,
|
|
patch?: Partial<WeatherSettings>,
|
|
): WeatherSettings;
|