blob: 5deb9ef4228bcc6f2c4c01c3672be7e3f848812d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package messages
import (
"github.com/pektezol/bitreader"
"github.com/pektezol/sdp.go/pkg/writer"
)
type SvcGetCvarValue struct {
Cookie int32
CvarName string
}
func ParseSvcGetCvarValue(reader *bitreader.Reader) SvcGetCvarValue {
svcGetCvarValue := SvcGetCvarValue{
Cookie: reader.TryReadSInt32(),
CvarName: reader.TryReadString(),
}
writer.TempAppendLine("\t\tCookie: %d", svcGetCvarValue.Cookie)
writer.TempAppendLine("\t\tCvar: \"%s\"", svcGetCvarValue.CvarName)
return svcGetCvarValue
}
|