tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.NetMessage Class Reference

Classes

struct  NetSoundInfo
 

Static Public Member Functions

static void BootPlayer (int plr, NetworkText msg)
 
static void CheckBytes (int bufferIndex=256)
 
static int CompressTileBlock (int xStart, int yStart, short width, short height, byte[] buffer, int bufferStart)
 
static void CompressTileBlock_Inner (BinaryWriter writer, int xStart, int yStart, int width, int height)
 
static void DecompressTileBlock (byte[] buffer, int bufferStart, int bufferLength)
 
static void DecompressTileBlock_Inner (BinaryReader reader, int xStart, int yStart, int width, int height)
 
static bool DoesPlayerSlotCountAsAHost (int plr)
 
static void greetPlayer (int plr)
 
static void PlayNetSound (NetSoundInfo info, int remoteClient=-1, int ignoreClient=-1)
 
static void ReceiveBytes (byte[] bytes, int streamLength, int i=256)
 
static void SendAnglerQuest (int remoteClient)
 
static void SendCoinLossRevengeMarker (CoinLossRevengeSystem.RevengeMarker marker, int remoteClient=-1, int ignoreClient=-1)
 
static void SendData (int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
 
static void SendObjectPlacment (int whoAmi, int x, int y, int type, int style, int alternative, int random, int direction)
 
static void SendPlayerDeath (int playerTargetIndex, PlayerDeathReason reason, int damage, int direction, bool pvp, int remoteClient=-1, int ignoreClient=-1)
 
static void SendPlayerHurt (int playerTargetIndex, PlayerDeathReason reason, int damage, int direction, bool critical, bool pvp, int hitContext, int remoteClient=-1, int ignoreClient=-1)
 
static void SendSection (int whoAmi, int sectionX, int sectionY, bool skipSent=false)
 
static void SendTemporaryAnimation (int whoAmi, int animationType, int tileType, int xCoord, int yCoord)
 
static void SendTileSquare (int whoAmi, int tileX, int tileY, int centeredSquareSize, TileChangeType changeType=TileChangeType.None)
 
static void SendTileSquare (int whoAmi, int tileX, int tileY, int xSize, int ySize, TileChangeType changeType=TileChangeType.None)
 
static void SendTileSquare (int whoAmi, int tileX, int tileY, TileChangeType changeType=TileChangeType.None)
 
static void SendTravelShop (int remoteClient)
 
static void sendWater (int x, int y)
 
static void SyncConnectedPlayer (int plr)
 
static void SyncDisconnectedPlayer (int plr)
 
static bool TrySendData (int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
 

Static Public Attributes

static PlayerDeathReason _currentPlayerDeathReason
 
static MessageBuffer[] buffer = new MessageBuffer[257]