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