1
This commit is contained in:
parent
6abc112a67
commit
95684ed6c3
@ -26,6 +26,7 @@
|
||||
|
||||
void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
|
||||
{
|
||||
#ifdef MYDEBUG
|
||||
#ifndef MYDEBUG
|
||||
return;
|
||||
#endif
|
||||
@ -412,7 +413,6 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
|
||||
} else if (cmd == "fast_forward") {
|
||||
room->GMFastForward();
|
||||
} else if (cmd == "last_pickup") {
|
||||
#ifdef MYDEBUG
|
||||
SendDebugMsg(a8::Format("拾取道具: 距离当前时间(毫秒):%d 数量:%d",
|
||||
{
|
||||
(room->GetFrameNo() - last_interaction_frameno_) * FRAME_RATE_MS,
|
||||
@ -444,9 +444,29 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
|
||||
obj_uniid,
|
||||
item_id,
|
||||
}));
|
||||
#endif
|
||||
}
|
||||
SendDebugMsg("道具拾取: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||
} else if (cmd == "human_list") {
|
||||
SendDebugMsg(a8::Format("human_list: hum:%d",
|
||||
{
|
||||
room->GetHumanNum()
|
||||
}));
|
||||
room->TraverseHumanList
|
||||
(
|
||||
[this] (Human* hum) -> bool
|
||||
{
|
||||
SendDebugMsg(a8::Format("human_list: obj_uniid:%d hero_id:%s hero_name:%s",
|
||||
{
|
||||
hum->GetUniId(),
|
||||
hum->GetHeroMeta()->id(),
|
||||
hum->GetHeroMeta()->name()
|
||||
}));
|
||||
return true;
|
||||
}
|
||||
);
|
||||
SendDebugMsg("human_list: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||
SendDebugMsg("human_list: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||
|
||||
} else if (cmd == "winexp" && cmds.size() >= 1) {
|
||||
float exp = a8::XValue(cmds[1]).GetDouble();
|
||||
if (exp > 0) {
|
||||
@ -462,7 +482,6 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
|
||||
float z = a8::XValue(cmds[3]).GetDouble();
|
||||
GetMovement()->FindPath(glm::vec3(x, y, z), 10);
|
||||
}
|
||||
#ifdef MYDEBUG
|
||||
a8::XPrintf("exec_cmd:%s\n", {cmd});
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user