new server
This commit is contained in:
19
models/entity.go
Normal file
19
models/entity.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
type EntityType uint8
|
||||
|
||||
const (
|
||||
EntityPlayer EntityType = 1
|
||||
EntityNPC EntityType = 2
|
||||
EntityBullet EntityType = 3
|
||||
)
|
||||
|
||||
type Entity struct {
|
||||
ID uint32
|
||||
Type EntityType
|
||||
|
||||
X float32
|
||||
Y float32
|
||||
Z float32
|
||||
Yaw float32
|
||||
}
|
||||
Reference in New Issue
Block a user