-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautofold.cpp
More file actions
52 lines (44 loc) · 1.46 KB
/
Copy pathautofold.cpp
File metadata and controls
52 lines (44 loc) · 1.46 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
#include "common/macros.h"
#include "gameroot.h"
#include "logic/gamelogic/core/autobet.h"
#include "utils/tarslog.h"
#include "context/context.h"
#include "config/gameconfig.h"
#include "dz.pb.h"
#include "process/process.h"
#include "message/sendclientmessage.h"
#include "logic/gamelogic/core/tokento.h"
#include "logic/clientlogic/core/tokenbet.h"
#include "common/nndef.h"
#include "xtime4lib.h"
using namespace nndef;
namespace game
{
namespace logic
{
namespace gamelogic
{
void AutoFold(GameRoot *root)
{
PERFSTATS_ENTRY();
__TRY__
DLOG_TRACE("roomkey:" << root->cfg->getRoomKey() << ", " << "AutoFold");
using namespace context;
using namespace process;
using namespace message;
using namespace config;
using namespace clientlogic;
cid_t tokencid = root->con->getTokenCid();
User *user = root->con->getUserByCid(tokencid);
XGameDZProto::NN_msg2cTokenBet nncm;
nncm.set_idzact(NN_ACT_FOLD);
nncm.set_lbetnum(0);
vector<char> vecOutBuffer;
pbTobuffer(nncm, vecOutBuffer);
clientlogic::TokenBet(user->getUid(), vecOutBuffer, root);
__CATCH__
PERFSTATS_EXIT();
}
}
}
}