Add 7 suffix to messages

This commit is contained in:
ChillerDragon 2024-06-19 12:59:43 +08:00
parent 8f4004a2ce
commit 5fd1c39039
6 changed files with 7 additions and 8 deletions

View file

@ -1,4 +1,4 @@
package message
package messages7
import (
"slices"

View file

@ -1,4 +1,4 @@
package message
package messages7
import (
"reflect"

View file

@ -1,4 +1,4 @@
package message
package messages7
import "github.com/teeworlds-go/teeworlds/packer"

View file

@ -1,4 +1,4 @@
package message
package messages7
import (
"reflect"

View file

@ -22,4 +22,3 @@ const (
type ControlMsg int
type NetMsg int

View file

@ -9,14 +9,14 @@ import (
"github.com/teeworlds-go/huffman"
"github.com/teeworlds-go/teeworlds/chunk"
message "github.com/teeworlds-go/teeworlds/messages"
"github.com/teeworlds-go/teeworlds/messages7"
"github.com/teeworlds-go/teeworlds/network7"
"github.com/teeworlds-go/teeworlds/packer"
"github.com/teeworlds-go/teeworlds/packet"
)
type Player struct {
Info message.SvClientInfo
Info messages7.SvClientInfo
}
type Connection struct {
@ -133,7 +133,7 @@ func (client *Connection) SendInfo() {
}
func (client *Connection) SendStartInfo() {
info := message.ClStartInfo{
info := messages7.ClStartInfo{
Name: "gopher",
Clan: "",
Country: 0,