Files
osirose-new/proto/game_logic.proto
raven da6d7518e5 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
2025-07-22 00:21:28 -04:00

29 lines
472 B
Protocol Buffer

syntax = "proto3";
package game_logic;
service GameLogicService {
rpc GetNearbyObjects(NearbyObjectsRequest) returns (NearbyObjectsResponse);
}
message NearbyObjectsRequest {
string client_id = 1;
float x = 2;
float y = 3;
float z = 4;
int32 map_id = 5;
}
message NearbyObjectsResponse {
repeated Object objects = 1;
}
message Object {
int32 id = 1;
int32 type_ = 2;
float x = 3;
float y = 4;
float z = 5;
int32 hp = 6;
int32 max_hp = 7;
}