All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 1m19s
21 lines
265 B
Go
21 lines
265 B
Go
package models
|
|
|
|
type Player struct {
|
|
BaseEntity
|
|
Name string
|
|
}
|
|
|
|
func NewPlayer(id uint32, name string) *Player {
|
|
return &Player{
|
|
BaseEntity: BaseEntity{
|
|
ID: id,
|
|
Type: EntityPlayer,
|
|
X: 0,
|
|
Y: 0,
|
|
Z: 0,
|
|
Yaw: 0,
|
|
},
|
|
Name: name,
|
|
}
|
|
}
|