TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.ModPacket Class Referencesealed

This class inherits from BinaryWriter. This means that you can use all of its writing functions to send information between client and server. This class also comes with a Send method that's used to actually send everything you've written between client and server. More...

+ Inheritance diagram for Terraria.ModLoader.ModPacket:
+ Collaboration diagram for Terraria.ModLoader.ModPacket:

Public Member Functions

void Send (int toClient=-1, int ignoreClient=-1)
 Sends all the information you've written between client and server. If the toClient parameter is non-negative, this packet will only be sent to the specified client. If the ignoreClient parameter is non-negative, this packet will not be sent to the specified client.
 

Package Functions

 ModPacket (byte messageID, int capacity=256)
 

Package Attributes

short netID = -1
 

Private Member Functions

void SendCallback (object state)
 
void Finish ()
 

Private Attributes

byte[] buf
 
ushort len
 

Detailed Description

This class inherits from BinaryWriter. This means that you can use all of its writing functions to send information between client and server. This class also comes with a Send method that's used to actually send everything you've written between client and server.

ModPacket has all the same methods as BinaryWriter, and some additional ones.

See also
T:System.IO.BinaryWriter

Definition at line 13 of file ModPacket.cs.


The documentation for this class was generated from the following file: