Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Null = Entity(0)
Null represents a invalid entity.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity uint64
Entity is identifier of an entity. The first 32 bits are the entity id. The last 32 bits are the version. The version is incremented when the entity is destroyed.
func NewEntity ¶
NewEntity creates a new entity. The id is a unique identifier for the entity. To reuse the id, the id should be passed from the world that created the entity.
func (Entity) IncVersion ¶
IncVersion increments the entity version.
Click to show internal directories.
Click to hide internal directories.