public interface IWeatherManagerProvides current-planet weather discovery, status, and host-safe starts.
Members
EventsGets an immutable snapshot of natural weather and meteor events for the current planet. An empty list before world load is normal.propertyStatusGets the current synchronized weather state.propertyTryGetEventFinds an event by exact stable ID, ignoring letter case.methodFindEventsFinds events by partial ID or display name.methodStartAsyncStarts one synchronized current-planet weather event through the game's native weather manager.methodEvents
propertyIReadOnlyList<IWeatherEventDefinition> EventsGets an immutable snapshot of natural weather and meteor events for the current planet. An empty list before world load is normal.
Status
propertyWeatherSnapshot StatusGets the current synchronized weather state.
TryGetEvent
methodbool TryGetEvent(string id, out IWeatherEventDefinition? weatherEvent)Finds an event by exact stable ID, ignoring letter case.
FindEvents
methodIReadOnlyList<IWeatherEventDefinition> FindEvents(string search)Finds events by partial ID or display name.
StartAsync
methodTask<EnvironmentActionResult> StartAsync( string eventId, WorldPosition? referencePosition = null )Starts one synchronized current-planet weather event through the game's native weather manager.
This call is always host-only, may be called from any thread, refuses to replace an active event, respects terraformation-stage bounds, and performs game interaction on the main thread. CMAPI intentionally does not expose forced stopping until every environment and asteroid cleanup path is proven safe.