new files
This commit is contained in:
6
models/message.go
Normal file
6
models/message.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package models
|
||||
|
||||
type Message struct {
|
||||
Type int8
|
||||
Payload interface{}
|
||||
}
|
||||
19
models/player.go
Normal file
19
models/player.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
import "github.com/gorilla/websocket"
|
||||
|
||||
type Player struct {
|
||||
ID uint32
|
||||
|
||||
X float32
|
||||
Y float32
|
||||
Z float32
|
||||
|
||||
InputX float32
|
||||
InputZ float32
|
||||
|
||||
Name string
|
||||
PhotoURL string
|
||||
|
||||
Conn *websocket.Conn
|
||||
}
|
||||
Reference in New Issue
Block a user