go-teeworlds-protocol/messages7/net_message.go

20 lines
378 B
Go
Raw Normal View History

2024-06-20 03:08:52 +00:00
package messages7
import (
"github.com/teeworlds-go/teeworlds/chunk7"
"github.com/teeworlds-go/teeworlds/network7"
"github.com/teeworlds-go/teeworlds/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)
Header() *chunk7.ChunkHeader
2024-06-21 01:50:46 +00:00
SetHeader(header *chunk7.ChunkHeader)
2024-06-20 03:08:52 +00:00
}