Network

Namespace: SharpPluginLoader.Core.Networking

Provides access to the game's networking system.

public static class Network

Inheritance ObjectNetwork

Properties

SingletonInstance

The sMhNetwork singleton instance.

public static nint SingletonInstance { get; }

Property Value

IntPtr

Methods

SendPacket(IPacket, Boolean, UInt32, SessionIndex)

Sends a packet to other people in the specified session.

public static void SendPacket(IPacket packet, bool broadcast, uint memberIndex, SessionIndex targetSession)

Parameters

packet IPacket
The packet to send.

broadcast Boolean
Whether or not to broadcast the packet to everyone in the session.

memberIndex UInt32
If is false, the index of the member to send the packet to.

targetSession SessionIndex
The session to send the packet to.