go-teeworlds-protocol/messages7/ctrl_keep_alive.go

41 lines
757 B
Go
Raw Normal View History

package messages7
import (
"github.com/teeworlds-go/teeworlds/chunk7"
"github.com/teeworlds-go/teeworlds/network7"
"github.com/teeworlds-go/teeworlds/packer"
)
type CtrlKeepAlive struct {
}
func (msg CtrlKeepAlive) MsgId() int {
return network7.MsgCtrlKeepAlive
}
func (msg CtrlKeepAlive) MsgType() network7.MsgType {
return network7.TypeControl
}
func (msg CtrlKeepAlive) System() bool {
return false
}
func (msg CtrlKeepAlive) Vital() bool {
return false
}
func (msg CtrlKeepAlive) Pack() []byte {
return []byte{network7.MsgCtrlKeepAlive}
}
func (msg *CtrlKeepAlive) Unpack(u *packer.Unpacker) {
}
func (msg *CtrlKeepAlive) Header() *chunk7.ChunkHeader {
return nil
}
func (msg *CtrlKeepAlive) SetHeader(header *chunk7.ChunkHeader) {
}