ModPacket
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.
Methods
- Send(System.Int32,System.Int32)()
- 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.