gopenfusion/core/entity/entity.go

21 lines
296 B
Go
Raw Normal View History

2023-06-25 06:51:21 +00:00
package entity
type EntityKind int
const (
ENTITY_KIND_PLAYER EntityKind = iota
ENTITY_KIND_NPC
)
type Entity interface {
GetKind() EntityKind
GetChunk() *Chunk
GetPosition() (x int, y int, z int)
GetAngle() int
SetChunk(chunk *Chunk)
SetPosition(x, y, z int)
SetAngle(angle int)
}