feat(gameplay): implement entity update packets

Add S2CEntityUpdate to sync entity positions from server to client, including update handling in the client entity manager and server-side AI updates.
This commit is contained in:
2026-07-31 17:44:33 +08:00
parent d6f304e6ca
commit 8451921161
7 changed files with 63 additions and 5 deletions

View File

@@ -22,7 +22,10 @@ void ServerEntityManager::init() {
std::move(c), PigTag{});
});
}
void ServerEntityManager::update() { handle_task(); }
void ServerEntityManager::update() {
handle_task();
update_ai();
}
void ServerEntityManager::handle_task() {
TaskPair pair;