2024-06-22 02:38:06 +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-22 02:38:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type ConReady struct {
|
|
|
|
ChunkHeader *chunk7.ChunkHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg ConReady) MsgId() int {
|
|
|
|
return network7.MsgSysConReady
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg ConReady) MsgType() network7.MsgType {
|
|
|
|
return network7.TypeNet
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg ConReady) System() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg ConReady) Vital() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg ConReady) Pack() []byte {
|
|
|
|
return []byte{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *ConReady) Unpack(u *packer.Unpacker) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *ConReady) Header() *chunk7.ChunkHeader {
|
|
|
|
return msg.ChunkHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *ConReady) SetHeader(header *chunk7.ChunkHeader) {
|
|
|
|
msg.ChunkHeader = header
|
|
|
|
}
|