api: add an addChatMessage method overload to allow skipping events

This commit is contained in:
Adam
2021-02-04 17:54:21 -05:00
parent fc8360f6cc
commit 29747b1ea7

View File

@@ -120,8 +120,21 @@ public interface Client extends GameEngine
* @param name the name of the player that sent the message
* @param message the message contents
* @param sender the sender/channel name
* @return the message node for the message
*/
void addChatMessage(ChatMessageType type, String name, String message, String sender);
MessageNode addChatMessage(ChatMessageType type, String name, String message, String sender);
/**
* Adds a new chat message to the chatbox.
*
* @param type the type of message
* @param name the name of the player that sent the message
* @param message the message contents
* @param sender the sender/channel name
* @param postEvent whether to post the chat message event
* @return the message node for the message
*/
MessageNode addChatMessage(ChatMessageType type, String name, String message, String sender, boolean postEvent);
/**
* Gets the current game state.