mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
feat(gameplay): add block change sync and coordinate utils
This commit is contained in:
@@ -74,6 +74,12 @@ asio::awaitable<void> NetworkClient::read_loop() {
|
||||
m_world.receive_chunk(rsp);
|
||||
}
|
||||
}
|
||||
case to_num(PacketEnum::BLOCK_CHANGE_RSP): {
|
||||
BlockChangeRsp rsp;
|
||||
if (rsp.ParseFromArray(body_data.data(), body_data.size())) {
|
||||
m_world.receive_block_change(rsp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (const asio::system_error& e) {
|
||||
|
||||
Reference in New Issue
Block a user