This commit is contained in:
aozhiwei 2023-03-21 14:46:07 +08:00
parent e5f23af683
commit 9196746e6c
3 changed files with 11 additions and 0 deletions

View File

@ -117,7 +117,13 @@ void Android::InternalUpdate(int delta_time)
return;
}
}
#ifdef DEBUG
if (!Global::Instance()->stop_world) {
agent_->Exec();
}
#else
agent_->Exec();
#endif
}
void Android::GiveEquip()

View File

@ -16,6 +16,7 @@ class Global : public a8::Singleton<Global>
static ColliderComponent* last_collider;
int traversing_cell_creature_count = 0;
int verify_set_pos = 0;
bool stop_world = false;
};
bool IsValidSlotId(int slot_id);

View File

@ -1074,6 +1074,10 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
VP_Gas,
TEXT("battle_server_killer_gas", "毒圈"),
dmg_out);
} else if (cmd == "stop_world") {
Global::Instance()->stop_world = true;
} else if (cmd == "start_world") {
Global::Instance()->stop_world = false;
} else if (cmd == "add_hp") {
if (cmds.size() > 1) {
float hp = a8::XValue(cmds[1]).GetDouble();