Skip to content
Void Monster Docs

Type to search guides and API reference.

    OBS Utils/Developer docs

    Class: ObsUtilsApi

    Legacy documentation

    Defined in: api.ts:65

    new ObsUtilsApi(): ObsUtilsApi

    Defined in: api.ts:72

    ObsUtilsApi

    obsRemoteEventTypes: Map<string, OBSRemoteEventTypeRegistration>

    Defined in: api.ts:70


    overlayTypeNames: Map<string, string>

    Defined in: api.ts:67


    overlayTypes: Map<string, OverlayType>

    Defined in: api.ts:66


    singleInstanceOverlays: Set<Component>

    Defined in: api.ts:68


    singleInstanceOverlaysSvelte5: Set<Component>

    Defined in: api.ts:69

    getOBSWebsocketClient(): Promise<any> | undefined

    Defined in: api.ts:140

    Promise<any> | undefined


    getSelectedActors(): any

    Defined in: api.ts:128

    any


    isOBS(): any

    Defined in: api.ts:148

    any


    registerOBSRemoteEventType(reg): void

    Defined in: api.ts:81

    Public — modules call this in their init hook to expose a new event type.

    OBSRemoteEventTypeRegistration

    void


    registerOverlayType(key, readableName, type): void

    Defined in: api.ts:113

    Register a new overlay type. Surfaces in the Stream Composer’s “+ new” menu and elsewhere the type list is consumed.

    string

    Stable key written into OverlayData.type (e.g. ‘wysiwyg’).

    string

    i18n key for the display label. Resolved via game.i18n.localize() at render time. Pass a literal string only if you intentionally ship a single-locale module.

    OverlayType

    The OverlayType instance with the renderer and editor wired up.

    void


    registerUniqueOverlay(overlay): void

    Defined in: api.ts:119

    Component

    void


    registerUniqueOverlaySvelte5(overlay): void

    Defined in: api.ts:124

    Component

    void


    setAVData(actorValueArray): void

    Defined in: api.ts:136

    ActorValues

    void


    setSelectedActors(actorArray): Promise<void>

    Defined in: api.ts:132

    string[]

    Promise<void>


    triggerOBSRemoteEvent(key, context?): Promise<void>

    Defined in: api.ts:94

    Public — modules call this when their in-system condition fires (e.g. on updateActor with system.attributes.hp.value changed). Looks up every configured instance for the type, runs the matcher, and executes the configured OBS actions for instances that pass.

    Safe to call from any client; the actual OBS action execution is already gated to the OBS-mode client by triggerOBSAction.

    string

    Record<string, any> = {}

    Promise<void>