EventPredictionUI

Overview

Bridges EventPanelUI with prediction-aware UI widgets. For each supported event parameter, raises a bound FloatEvent with the predicted delta (or 0 if the response doesn’t affect that parameter). Also exposes a one-shot ClearPredictions() to reset all visuals. fileciteturn24file0

Serialized (Atoms)

  • FloatEvent moneyPrediction, loyaltyPrediction, controlPrediction, demandPrediction
  • FloatEvent policeSeverityPrediction, cartelSeverityPrediction
  • FloatEvent affinityMobsterPrediction, affinitySchemerPrediction, affinitySubterfugePrediction fileciteturn24file0

Public API

void UpdatePredictionsUI(EventResponse response);
// Looks up each parameter in response.effects and raises the matching FloatEvent
// with the effect value, or 0 if not present.

void ClearPredictions(); // raises 0 on all bound FloatEvents

Internally, PredictChange(...) scans response.effects for a given ChairmanEvent.Parameter and raises the corresponding FloatEvent. fileciteturn24file0