aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcGetCvarValue.go
blob: b0513d009c8493c404295cff37336f565062174c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package messages

import (
	"github.com/pektezol/bitreader"
)

type SvcGetCvarValue struct {
	Cookie   int32
	CvarName string
}

func ParseSvcGetCvarValue(reader *bitreader.Reader) SvcGetCvarValue {
	svcGetCvarValue := SvcGetCvarValue{
		Cookie:   reader.TryReadSInt32(),
		CvarName: reader.TryReadString(),
	}

	return svcGetCvarValue
}