Files
osirose-new/proto/character.proto
raven cb6ee657f0 - add: Character service can now actually create a character correctly in the database
- add: character db client to allow the character service to talk to the database service
- update: character.proto to make character data shared
2025-01-07 13:41:07 -05:00

50 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
package character;
import "character_common.proto";
service CharacterService {
rpc GetCharacterList(GetCharacterListRequest) returns (GetCharacterListResponse);
rpc CreateCharacter(CreateCharacterRequest) returns (CreateCharacterResponse);
rpc DeleteCharacter(DeleteCharacterRequest) returns (DeleteCharacterResponse);
rpc GetCharacter(GetCharacterRequest) returns (Empty);
}
message GetCharacterListRequest {
string user_id = 1;
}
message GetCharacterListResponse {
repeated character_common.Character characters = 1;
}
message CreateCharacterRequest {
string user_id = 1;
string name = 2;
int32 race = 3;
int32 face = 4;
int32 hair = 5;
int32 stone = 6;
}
message CreateCharacterResponse {
int32 result = 1;
}
message DeleteCharacterRequest {
string user_id = 1;
string char_id = 2;
}
message DeleteCharacterResponse {
int64 remaining_time = 1;
string name = 2;
}
message GetCharacterRequest {
string user_id = 1;
}
message Empty {}