tModLoader v2024.11
A mod to make and play Terraria mods
ChatMessage Class Reference

Public Member Functions

 ChatMessage (string message)
 
void Consume ()
 
int GetMaxSerializedSize ()
 
void Serialize (BinaryWriter writer)
 
void SetCommand (ChatCommandId commandId)
 
void SetCommand< T > ()
 

Static Public Member Functions

static ChatMessage Deserialize (BinaryReader reader)
 

Properties

ChatCommandId CommandId [get]
 
bool IsConsumed [get]
 
string Text [get, set]
 

Member Function Documentation

◆ SetCommand< T >()

void ChatMessage.SetCommand< T > ( )
Type Constraints
T :IChatCommand