-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsendroommessage.cpp
More file actions
34 lines (31 loc) · 882 Bytes
/
sendroommessage.cpp
File metadata and controls
34 lines (31 loc) · 882 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
33
34
/***************************************************************************************
# Copyright (c) 2019
# All rights reserved
#
# @author :
# @name :
# @file :
# @date :
# @describe:
#***************************************************************************************/
#include "utils/tarslog.h"
#include "message/sendroommessage.h"
namespace game
{
namespace message
{
int sendRoomMessage(const RoomSo::E_SO_TO_ROOM eMsgType, void *p, GameRoot *root)
{
//DLOG_TRACE("sendRoomMessage, eMsgType = " << etos(eMsgType));
if(root->gs)
{
return root->gs->toRoomData(eMsgType, p);
}
else
{
//DLOG_TRACE("sendRoomMessage, root->gs is nullprt.");
return 0;
}
}
};
};