Table of Contents

Class Network

Namespace
SharpPluginLoader.Core.Networking
Assembly
SharpPluginLoader.Core.dll

Provides access to the game's networking system.

public static class Network
Inheritance
Network
Inherited Members

Properties

SingletonInstance

The sMhNetwork singleton instance.

public static MtObject SingletonInstance { get; }

Property Value

MtObject

Methods

SendPacket(IPacket, bool, uint, SessionIndex)

Sends a packet to other people in the specified session.

public static void SendPacket(IPacket packet, bool broadcast = true, uint memberIndex = 0, SessionIndex targetSession = SessionIndex.Current)

Parameters

packet IPacket

The packet to send.

broadcast bool

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

memberIndex uint

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

targetSession SessionIndex

The session to send the packet to.