forked from Sandertv/gophertunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
education.go
30 lines (26 loc) · 904 Bytes
/
education.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package protocol
// EducationSharedResourceURI is an education edition feature that is used for transmitting
// education resource settings to clients. It contains a button name and a link URL.
type EducationSharedResourceURI struct {
// ButtonName is the button name of the resource URI.
ButtonName string
// LinkURI is the link URI for the resource URI.
LinkURI string
}
// Marshal reads/writes an EducationSharedResourceURI to an IO.
func (x *EducationSharedResourceURI) Marshal(r IO) {
r.String(&x.ButtonName)
r.String(&x.LinkURI)
}
// EducationExternalLinkSettings ...
type EducationExternalLinkSettings struct {
// URL is the external link URL.
URL string
// DisplayName is the display name in game.
DisplayName string
}
// Marshal encodes/decodes an EducationExternalLinkSettings.
func (x *EducationExternalLinkSettings) Marshal(r IO) {
r.String(&x.URL)
r.String(&x.DisplayName)
}