tModLoader v2024.05
A mod to make and play Terraria mods
MessageBuffer Class Reference

Public Member Functions

void GetData (int start, int length, out int messageType)
void Reset ()
void ResetReader ()
void ResetWriter ()

Public Attributes

bool broadcast
bool checkBytes
PacketHistory History = new PacketHistory()
int maxSpam
int messageLength
byte[] readBuffer = new byte[131070]
BinaryReader reader
MemoryStream readerStream
int spamCount
int totalData
int whoAmI
byte[] writeBuffer = new byte[131070]
bool writeLocked
BinaryWriter writer
MemoryStream writerStream

Static Public Attributes

const int readBufferMax = 131070
const int writeBufferMax = 131070


static TileChangeReceivedEvent OnTileChangeReceived