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

import (
	"github.com/pektezol/bitreader"
	"github.com/pektezol/sdp.go/pkg/types"
)

type SvcSetView struct {
	EntityIndex uint16 `json:"entity_index"`
}

func ParseSvcSetView(reader *bitreader.Reader, demo *types.Demo) SvcSetView {
	svcSetView := SvcSetView{
		EntityIndex: uint16(reader.TryReadBits(11)),
	}
	demo.Writer.TempAppendLine("\t\tEntity Index: %d", svcSetView.EntityIndex)
	return svcSetView
}