go-teeworlds-protocol/messages7/snap_small.go

45 lines
883 B
Go
Raw Normal View History

2024-06-23 04:19:27 +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 unused in the official 0.7.5 implementation
type SnapSmall struct {
ChunkHeader *chunk7.ChunkHeader
}
func (msg *SnapSmall) MsgId() int {
2024-06-23 04:19:27 +00:00
return network7.MsgSysSnapSmall
}
func (msg *SnapSmall) MsgType() network7.MsgType {
2024-06-23 04:19:27 +00:00
return network7.TypeNet
}
func (msg *SnapSmall) System() bool {
2024-06-23 04:19:27 +00:00
return true
}
func (msg *SnapSmall) Vital() bool {
2024-06-23 04:19:27 +00:00
return false
}
func (msg *SnapSmall) Pack() []byte {
2024-06-23 04:19:27 +00:00
return []byte{}
}
func (msg *SnapSmall) Unpack(u *packer.Unpacker) error {
return nil
2024-06-23 04:19:27 +00:00
}
func (msg *SnapSmall) Header() *chunk7.ChunkHeader {
return msg.ChunkHeader
}
func (msg *SnapSmall) SetHeader(header *chunk7.ChunkHeader) {
msg.ChunkHeader = header
}