tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.Net.NetManager Class Reference

Public Member Functions

void Broadcast (NetPacket packet, BroadcastCondition conditionToBroadcast, int ignoreClient=-1)
 
void Broadcast (NetPacket packet, int ignoreClient=-1)
 
delegate bool BroadcastCondition (int clientIndex)
 
void BroadcastOrLoopback (NetPacket packet)
 
ushort GetId< T > ()
 
NetModule GetModule< T > ()
 
void Read (BinaryReader reader, int userId, int readLength)
 
void Register< T > ()
 
void SendToClient (NetPacket packet, int playerId)
 
void SendToSelf (NetPacket packet)
 
void SendToServer (NetPacket packet)
 
void SendToServerOrLoopback (NetPacket packet)
 

Static Public Member Functions

static void SendCallback (object state)
 

Static Public Attributes

static readonly NetManager Instance = new NetManager()