- update: proto files to move common stuff into common proto files

- update: made changes for new proto paths
- add: skills to character table
- add: load and send skills to client from db
- add: chat proto
This commit is contained in:
2025-02-27 22:11:17 -05:00
parent 292a298205
commit a9a6c52b00
21 changed files with 141 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.compile_well_known_types(true)
.compile_protos(&["../proto/auth.proto"], &["../proto"])?;
.compile_protos(&["../proto/common.proto", "../proto/auth.proto"], &["../proto"])?;
Ok(())
}

View File

@@ -16,6 +16,9 @@ use auth::{LoginRequest, RegisterRequest};
use log::{error, info};
use tokio::sync::Mutex;
pub mod common {
tonic::include_proto!("common");
}
pub mod auth {
tonic::include_proto!("auth");
}