[7572] Use enum type instead int for World::SendServerMessage arg Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
+11
-1
@@ -45,6 +45,16 @@ class SqlResultQueue;
|
||||
class QueryResult;
|
||||
class WorldSocket;
|
||||
|
||||
// ServerMessages.dbc
|
||||
enum ServerMessageType
|
||||
{
|
||||
SERVER_MSG_SHUTDOWN_TIME = 1,
|
||||
SERVER_MSG_RESTART_TIME = 2,
|
||||
SERVER_MSG_STRING = 3,
|
||||
SERVER_MSG_SHUTDOWN_CANCELLED = 4,
|
||||
SERVER_MSG_RESTART_CANCELLED = 5
|
||||
};
|
||||
|
||||
enum ShutdownMask
|
||||
{
|
||||
SHUTDOWN_MASK_RESTART = 1,
|
||||
@@ -475,7 +485,7 @@ class World
|
||||
void SendGlobalGMMessage(WorldPacket *packet, WorldSession *self = 0, uint32 team = 0);
|
||||
void SendZoneMessage(uint32 zone, WorldPacket *packet, WorldSession *self = 0, uint32 team = 0);
|
||||
void SendZoneText(uint32 zone, const char *text, WorldSession *self = 0, uint32 team = 0);
|
||||
void SendServerMessage(uint32 type, const char *text = "", Player* player = NULL);
|
||||
void SendServerMessage(ServerMessageType type, const char *text = "", Player* player = NULL);
|
||||
|
||||
/// Are we in the middle of a shutdown?
|
||||
bool IsShutdowning() const { return m_ShutdownTimer > 0; }
|
||||
|
||||
Reference in New Issue
Block a user