20 lines
243 B
Go
20 lines
243 B
Go
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
|
|
}
|