go-teeworlds-protocol/messages7/enter_game.go

44 lines
819 B
Go
Raw Permalink 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 EnterGame struct {
2024-06-21 01:50:46 +00:00
ChunkHeader *chunk7.ChunkHeader
2024-06-20 03:08:52 +00:00
}
func (msg *EnterGame) MsgId() int {
2024-06-20 03:08:52 +00:00
return network7.MsgSysEnterGame
}
func (msg *EnterGame) MsgType() network7.MsgType {
2024-06-20 03:08:52 +00:00
return network7.TypeNet
}
func (msg *EnterGame) System() bool {
2024-06-20 03:08:52 +00:00
return true
}
func (msg *EnterGame) Vital() bool {
2024-06-20 03:08:52 +00:00
return true
}
func (msg *EnterGame) Pack() []byte {
2024-06-20 03:08:52 +00:00
return []byte{}
}
func (msg *EnterGame) Unpack(u *packer.Unpacker) error {
return nil
}
func (msg *EnterGame) Header() *chunk7.ChunkHeader {
2024-06-21 01:50:46 +00:00
return msg.ChunkHeader
}
func (msg *EnterGame) SetHeader(header *chunk7.ChunkHeader) {
2024-06-21 01:50:46 +00:00
msg.ChunkHeader = header
}