tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
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...
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. More... | |
Private Member Functions | |
void | Finish () |
void | SendCallback (object state) |
Private Attributes | |
byte[] | buf |
ushort | len |
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.
Definition at line 13 of file ModPacket.cs.
|
private |
Definition at line 49 of file ModPacket.cs.
References Terraria.ModLoader.ModPacket.buf, and Terraria.ModLoader.ModPacket.len.
Referenced by Terraria.ModLoader.ModPacket.Send().
void Terraria.ModLoader.ModPacket.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.
Definition at line 27 of file ModPacket.cs.
References Terraria.ModLoader.ModPacket.buf, Terraria.ModLoader.ModPacket.Finish(), Terraria.ModLoader.ModPacket.len, Terraria.ModLoader.ModPacket.SendCallback(), Terraria.ModLoader.ModNet.txDataType, and Terraria.ModLoader.ModNet.txMsgType.
Referenced by Terraria.ModLoader.ModNet.OnModsDownloaded().
|
private |
Definition at line 47 of file ModPacket.cs.
Referenced by Terraria.ModLoader.ModPacket.Send().
|
private |
Definition at line 15 of file ModPacket.cs.
Referenced by Terraria.ModLoader.ModPacket.Finish(), and Terraria.ModLoader.ModPacket.Send().
|
private |
Definition at line 16 of file ModPacket.cs.
Referenced by Terraria.ModLoader.ModPacket.Finish(), and Terraria.ModLoader.ModPacket.Send().