Updated how we handle client ids in the world service and logic service

Implemented the bidirectional comms stream between the world service and game logic service
This commit is contained in:
2025-07-22 00:21:28 -04:00
parent a20a44fd29
commit da6d7518e5
10 changed files with 265 additions and 55 deletions

View File

@@ -27,7 +27,7 @@ impl GameLogicService for MyGameLogicService {
// Get nearby entities from the entity system
let entity_infos = self.entity_system.get_nearby_objects_for_client(
req.client_id as u16,
&req.client_id,
req.x,
req.y,
req.z,
@@ -35,6 +35,7 @@ impl GameLogicService for MyGameLogicService {
);
// Convert EntityInfo to proto Object
// TODO: we also need to grab the extra data from the entity and add it to the objects
let objects: Vec<Object> = entity_infos
.into_iter()
.map(|info| Object {