tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.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
 

Events

static TileChangeReceivedEvent OnTileChangeReceived