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
messengerISksePluginMessengermessageTypeuintHow the receiver is to read this message.
payloadReadOnlySpan<byte>The bytes to send.
receiverstringThe plugin to send to, named as Subscribe(string, Action<SksePluginMessage>) describes, or
nullto 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.