Table of Contents

Class SksePluginMessengerExtensions

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

Provides extension members for ISksePluginMessenger.

public static class SksePluginMessengerExtensions
Inheritance
SksePluginMessengerExtensions
Inherited Members

Methods

Send(ISksePluginMessenger, uint, ReadOnlySpan<byte>, string?)

Sends payload to one plugin, or to every plugin listening if no receiver is named.

public static bool Send(this ISksePluginMessenger messenger, uint messageType, ReadOnlySpan<byte> payload, string? receiver = null)

Parameters

messenger ISksePluginMessenger
messageType uint

How the receiver is to read this message.

payload ReadOnlySpan<byte>

The bytes to send.

receiver string

The plugin to send to, named as Subscribe(string, Action<SksePluginMessage>) describes, or null to reach every plugin listening for this one.

Returns

bool

Whether SKSE accepted the message. It declines one sent before plugins may message each other.

Remarks

Every SkyrimForge plugin sends as SkyrimForge, so a receiver tells their messages apart by message type alone. Use a type no other SkyrimForge plugin uses.