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
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
IPacketThe packet to send.
broadcast
boolWhether or not to broadcast the packet to everyone in the session.
memberIndex
uintIf
broadcast
is false, the index of the member to send the packet to.targetSession
SessionIndexThe session to send the packet to.