-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapshot.cpp
More file actions
29 lines (28 loc) · 784 Bytes
/
snapshot.cpp
File metadata and controls
29 lines (28 loc) · 784 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
#include "snapshot.h"
#include "../clientlogic.h"
#include "common/icard.h"
#include "gameroot.h"
#include "majong.pb.h"
#include "logic/gamelogic/gamelogic.h"
#include "context/context.h"
#include "context/user.h"
#include "process/process.h"
#include "process/dealer.h"
#include "message/sendclientmessage.h"
namespace majong
{
namespace logic
{
namespace clientlogic
{
int Snapshot(GameRoot *root)
{
XGameMJProto::SnapshotRsp rsp;
root->pro->Snapshot(rsp);
DLOG_TRACE("\nrsp:" << rsp.DebugString())
message::sendAllClientMessage((int)XGameMJProto::EMsgID::EmiSnapshot, rsp, root);
return 0;
}
}
}
}