Add natives to get chat triggers (#1816)

This commit is contained in:
Corey D
2022-12-02 13:55:32 +01:00
committed by GitHub
parent f90b7ade76
commit 3b4a343274
4 changed files with 62 additions and 0 deletions
+18
View File
@@ -273,6 +273,24 @@ native ReplySource SetCmdReplySource(ReplySource source);
*/
native bool IsChatTrigger();
/**
* Get the list of characters used for public chat triggers.
*
* @param buffer Buffer to use for storing the string.
* @param maxlength Maximum length of the buffer.
* @return Length of string written to buffer.
*/
native int GetPublicChatTriggers(char[] buffer, int maxlength);
/**
* Get the list of characters used for silent chat triggers.
*
* @param buffer Buffer to use for storing the string.
* @param maxlength Maximum length of the buffer.
* @return Length of string written to buffer.
*/
native int GetSilentChatTriggers(char[] buffer, int maxlength);
/**
* Displays usage of an admin command to users depending on the
* setting of the sm_show_activity cvar. All users receive a message