From ff86522f0e0808184678223bda909cfa7774c4f9 Mon Sep 17 00:00:00 2001 From: Evgeny Kovalev Date: Mon, 24 Jul 2023 20:59:03 +0300 Subject: [PATCH] new messages support --- internal/Messages/messages.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/internal/Messages/messages.go b/internal/Messages/messages.go index f4a8117..c6ccd38 100644 --- a/internal/Messages/messages.go +++ b/internal/Messages/messages.go @@ -1,13 +1,24 @@ package messages -/* const ( + Auth string = "Auth" Message string = "Message" PlayerAction string = "PlayerAction" System string = "System" ) -type PlayerMessage struct { +/* + + + */ + +type PlayerMsg struct { + Type string "json:`Type`" + Status int "json:`Status`" + Message interface{} "json:`Message`" +} +type AuthMsg struct { + Login string "json:`Login`" + Password string "json:`Password`" } -*/