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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user