-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsendroommessage.h
More file actions
32 lines (26 loc) · 816 Bytes
/
sendroommessage.h
File metadata and controls
32 lines (26 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/***************************************************************************************
# Copyright (c) 2019
# All rights reserved
#
# @author :
# @name :
# @file :
# @date :
# @describe:
#***************************************************************************************/
#pragma once
#include "Comm/ITableGame.h"
#include "gameroot.h"
#include "gameserver.h"
namespace game
{
namespace message
{
int sendRoomMessage(const RoomSo::E_SO_TO_ROOM eMsgType, void *p, GameRoot *root);
template<class T>
int sendRoomMessage(const RoomSo::E_SO_TO_ROOM eMsgType, T const &TMsg, GameRoot *root)
{
return sendRoomMessage(eMsgType, const_cast<void *>(static_cast<void const *>(&TMsg)), root);
}
};
};