mirror of
https://github.com/CPunch/gopenfusion.git
synced 2024-11-12 19:20:06 +00:00
21 lines
296 B
Go
21 lines
296 B
Go
|
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)
|
||
|
}
|