From 0de847bb4832c201233c87fa37867b9d89f0e8c8 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 27 May 2022 01:13:14 +0100 Subject: rename project folder (:tf: commit log) --- NorthstarDedicatedTest/serverchathooks.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 NorthstarDedicatedTest/serverchathooks.h (limited to 'NorthstarDedicatedTest/serverchathooks.h') diff --git a/NorthstarDedicatedTest/serverchathooks.h b/NorthstarDedicatedTest/serverchathooks.h deleted file mode 100644 index 1d8a806a..00000000 --- a/NorthstarDedicatedTest/serverchathooks.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include "pch.h" -#include -#include - -enum class CustomMessageType : char -{ - Chat = 1, - Whisper = 2 -}; - -constexpr unsigned char CUSTOM_MESSAGE_INDEX_BIT = 0b10000000; -constexpr unsigned char CUSTOM_MESSAGE_INDEX_MASK = ~CUSTOM_MESSAGE_INDEX_BIT; - -// Send a vanilla chat message as if it was from the player. -void ChatSendMessage(unsigned int playerIndex, const char* text, bool isteam); - -// Send a custom message. -// fromPlayerIndex: set to -1 for a [SERVER] message, or another value to send from a specific player -// toPlayerIndex: set to -1 to send to all players, or another value to send to a single player -// isTeam: display a [TEAM] badge -// isDead: display a [DEAD] badge -// messageType: send a specific message type -void ChatBroadcastMessage( - int fromPlayerIndex, int toPlayerIndex, const char* text, bool isTeam, bool isDead, CustomMessageType messageType); -- cgit v1.2.3