Added movement updates Updated how entities are checked Events sending between packet service all the way to the logic service
16 lines
784 B
Rust
16 lines
784 B
Rust
fn main() {
|
|
// gRPC Server code
|
|
tonic_build::configure()
|
|
.build_server(true) // Generate gRPC server code
|
|
.compile_well_known_types(true)
|
|
.compile_protos(&["../proto/world.proto", "../proto/game.proto"], &["../proto"])
|
|
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
|
|
|
// gRPC Client code
|
|
tonic_build::configure()
|
|
.build_server(false) // Generate gRPC client code
|
|
.compile_well_known_types(true)
|
|
.compile_protos(&["../proto/user_db_api.proto", "../proto/auth.proto", "../proto/character.proto", "../proto/character_common.proto", "../proto/chat.proto", "../proto/game_logic.proto", "../proto/game.proto"], &["../proto"])
|
|
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
|
}
|