tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.Chat.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 Terraria.Chat.ChatMessage.SetCommand< T > ( )
Type Constraints
T :IChatCommand