refactor package
This commit is contained in:
18
pkg/protocol/packet/game/client/server_links.go
Normal file
18
pkg/protocol/packet/game/client/server_links.go
Normal file
@ -0,0 +1,18 @@
|
||||
package client
|
||||
|
||||
import "github.com/Tnze/go-mc/chat"
|
||||
|
||||
//codec:gen
|
||||
type ServerLinkData struct {
|
||||
IsBuiltin bool
|
||||
//opt:enum:IsBuiltin:true
|
||||
Type int32 `mc:"VarInt"`
|
||||
//opt:enum:IsBuiltin:false
|
||||
Name chat.Message
|
||||
URL string
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type ServerLinks struct {
|
||||
Links []ServerLinkData
|
||||
}
|
Reference in New Issue
Block a user