|
|
@ -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`" |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|