2024-06-20 03:19:54 +00:00
|
|
|
package messages7
|
|
|
|
|
|
|
|
import (
|
2024-06-22 05:59:27 +00:00
|
|
|
"github.com/teeworlds-go/go-teeworlds-protocol/chunk7"
|
|
|
|
"github.com/teeworlds-go/go-teeworlds-protocol/network7"
|
|
|
|
"github.com/teeworlds-go/go-teeworlds-protocol/packer"
|
2024-06-20 03:19:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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}
|
|
|
|
}
|
2024-06-20 05:07:10 +00:00
|
|
|
|
|
|
|
func (msg *CtrlKeepAlive) Unpack(u *packer.Unpacker) {
|
|
|
|
}
|
2024-06-21 01:38:59 +00:00
|
|
|
|
|
|
|
func (msg *CtrlKeepAlive) Header() *chunk7.ChunkHeader {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *CtrlKeepAlive) SetHeader(header *chunk7.ChunkHeader) {
|
|
|
|
}
|