-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsendclientmessage.cpp
More file actions
53 lines (45 loc) · 1.94 KB
/
sendclientmessage.cpp
File metadata and controls
53 lines (45 loc) · 1.94 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/***************************************************************************************
# Copyright (c) 2019
# All rights reserved
#
# @author :
# @name :
# @file :
# @date :
# @describe:
#***************************************************************************************/
#include "utils/tarslog.h"
#include "message/sendclientmessage.h"
namespace game
{
namespace message
{
int sendClientMessage(const long &pid, int eMSG, const std::vector<char> &vecData, GameRoot *root)
{
//// DLOG_TRACE("sendClientMessage, pid = " << pid << ", eMSG: " << eMSG << ", vecData size: " << vecData.size());
return root->gs->doSendGameData(pid, eMSG, vecData);
}
int sendClientMessage(const long &pid, vector<int> &eMSG, const std::vector<vector<char> > &vecData, GameRoot *root)
{
return root->gs->doSendGameData(pid, eMSG, vecData);
}
int sendAllClientMessage(int eMSG, const std::vector<char> &vecData, GameRoot *root)
{
//// DLOG_TRACE("sendAllClientMessage, eMSG: " << eMSG << ", " << "vecData size: " << vecData.size());
return root->gs->doSendAllGameData(eMSG, vecData);
}
int sendAllClientMessage(vector<int> &eMSG, const std::vector<vector<char> > &vecData, GameRoot *root)
{
return root->gs->doSendAllGameData(eMSG, vecData);
}
int sendClientWatchGameData(int eMSG, const std::vector<char> &vecData, GameRoot *root)
{
//// DLOG_TRACE("sendClientWatchGameData, eMSG: " << eMSG << ", vecData size: " << vecData.size());
return root->gs->doSendWatchGameData(eMSG, vecData);
}
int sendClientWatchGameData(vector<int> &eMSG, const std::vector<vector<char> > &vecData, GameRoot *root)
{
return root->gs->doSendWatchGameData(eMSG, vecData);
}
};
};