Skip to content

IClientRuntime

Interface · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll

public interface IClientRuntime : IResourceRuntime

The client half of a resource: the local player’s own things, and asking the authority for the rest.

Extends: IResourceRuntime

IClientAudio Audio { get; }

Sound behaviours this resource changes from OMSI’s.

IDriverView DriverView { get; }
IClientEvents Events { get; }
IClientHud Hud { get; }
IClientInput Input { get; }
IPlayer? LocalPlayer { get; }

The local player, once the authority has accepted them (from the start in single player).

IEventSource<string> MapLoaded { get; }

The map folder name, once a map has finished loading.

IEventSource<string> MapUnloaded { get; }
IClientMessages Messages { get; }
IEventSource<SessionKind> SessionChanged { get; }
IClientVehicles Vehicles { get; }
IClientWorld World { get; }

Read-only: time and weather belong to the authority.