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
packetIPacketThe packet to send.
broadcastboolWhether or not to broadcast the packet to everyone in the session.
memberIndexuintIf
broadcastis false, the index of the member to send the packet to.targetSessionSessionIndexThe session to send the packet to.