Add 7 suffix to messages
This commit is contained in:
parent
8f4004a2ce
commit
5fd1c39039
|
@ -1,4 +1,4 @@
|
||||||
package message
|
package messages7
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"slices"
|
"slices"
|
|
@ -1,4 +1,4 @@
|
||||||
package message
|
package messages7
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
|
@ -1,4 +1,4 @@
|
||||||
package message
|
package messages7
|
||||||
|
|
||||||
import "github.com/teeworlds-go/teeworlds/packer"
|
import "github.com/teeworlds-go/teeworlds/packer"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package message
|
package messages7
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
|
@ -22,4 +22,3 @@ const (
|
||||||
|
|
||||||
type ControlMsg int
|
type ControlMsg int
|
||||||
type NetMsg int
|
type NetMsg int
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,14 @@ import (
|
||||||
|
|
||||||
"github.com/teeworlds-go/huffman"
|
"github.com/teeworlds-go/huffman"
|
||||||
"github.com/teeworlds-go/teeworlds/chunk"
|
"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/network7"
|
||||||
"github.com/teeworlds-go/teeworlds/packer"
|
"github.com/teeworlds-go/teeworlds/packer"
|
||||||
"github.com/teeworlds-go/teeworlds/packet"
|
"github.com/teeworlds-go/teeworlds/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Player struct {
|
type Player struct {
|
||||||
Info message.SvClientInfo
|
Info messages7.SvClientInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
type Connection struct {
|
type Connection struct {
|
||||||
|
@ -133,7 +133,7 @@ func (client *Connection) SendInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client *Connection) SendStartInfo() {
|
func (client *Connection) SendStartInfo() {
|
||||||
info := message.ClStartInfo{
|
info := messages7.ClStartInfo{
|
||||||
Name: "gopher",
|
Name: "gopher",
|
||||||
Clan: "",
|
Clan: "",
|
||||||
Country: 0,
|
Country: 0,
|
||||||
|
|
Loading…
Reference in a new issue