go-teeworlds-protocol/messages7/net_message.go

20 lines
420 B
Go
Raw Normal View History

2024-06-20 03:08:52 +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"
)
2024-06-20 03:08:52 +00:00
type NetMessage interface {
MsgId() int
MsgType() network7.MsgType
System() bool
Vital() bool
Pack() []byte
Unpack(u *packer.Unpacker) error
Header() *chunk7.ChunkHeader
2024-06-21 01:50:46 +00:00
SetHeader(header *chunk7.ChunkHeader)
2024-06-20 03:08:52 +00:00
}