feat(gameplay): integrate network client and thread-safe player pos

This commit is contained in:
2026-06-25 16:49:45 +08:00
parent cbc04f6ab0
commit 4a1ef54258
12 changed files with 372 additions and 30 deletions

View File

@@ -19,8 +19,10 @@ ServerWorld::~ServerWorld() {
stop_server_thread();
wait_all_chunk_tasks();
stop_thread_pool();
m_chunks.clear();
{
std::lock_guard lock(m_chunks_mutex);
m_chunks.clear();
}
}
void ServerWorld::wait_all_chunk_tasks() {