getting somewhere with db and auth

This commit is contained in:
2025-01-19 21:17:07 +01:00
parent be32dec202
commit 52ab45fe53
7 changed files with 326 additions and 69 deletions

View File

@ -9,6 +9,8 @@ message Action {
MOVE = 0;
CHAT = 1;
DISCONNECT = 2;
LOGIN = 3;
REGISTER = 4;
}
ActionType type = 1;
@ -16,6 +18,8 @@ message Action {
int32 y = 3;
int32 player_id = 4;
string chat_message = 5;
string username = 6;
string password = 7;
}
message ActionBatch {
@ -41,4 +45,6 @@ message ServerMessage {
repeated PlayerState players = 2;
int64 current_tick = 3;
repeated ChatMessage chat_messages = 4;
bool auth_success = 5;
string error_message = 6;
}