new messages support

master
Evgeny Kovalev 1 year ago
parent 3a44d2a73d
commit ff86522f0e
  1. 17
      internal/Messages/messages.go

@ -1,13 +1,24 @@
package messages package messages
/*
const ( const (
Auth string = "Auth"
Message string = "Message" Message string = "Message"
PlayerAction string = "PlayerAction" PlayerAction string = "PlayerAction"
System string = "System" 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`"
}

Loading…
Cancel
Save