go-teeworlds-protocol/messages7/sv_vote_clear_options.go

45 lines
995 B
Go
Raw Permalink Normal View History

2024-06-24 06:56:04 +00:00
package messages7
import (
"github.com/teeworlds-go/go-teeworlds-protocol/chunk7"
"github.com/teeworlds-go/go-teeworlds-protocol/network7"
"github.com/teeworlds-go/go-teeworlds-protocol/packer"
)
// This message is used by the server to empty all vote entries in the client menu.
type SvVoteClearOptions struct {
ChunkHeader *chunk7.ChunkHeader
}
func (msg *SvVoteClearOptions) MsgId() int {
return network7.MsgGameSvVoteClearOptions
}
func (msg *SvVoteClearOptions) MsgType() network7.MsgType {
return network7.TypeNet
}
func (msg *SvVoteClearOptions) System() bool {
return false
}
func (msg *SvVoteClearOptions) Vital() bool {
return true
}
func (msg *SvVoteClearOptions) Pack() []byte {
return []byte{}
}
func (msg *SvVoteClearOptions) Unpack(u *packer.Unpacker) error {
return nil
}
func (msg *SvVoteClearOptions) Header() *chunk7.ChunkHeader {
return msg.ChunkHeader
}
func (msg *SvVoteClearOptions) SetHeader(header *chunk7.ChunkHeader) {
msg.ChunkHeader = header
}