Entity Component System framework for Ebitengine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
243 B

package gohan
// EntityID is an entity identifier.
type EntityID int
var nextEntityID EntityID
// NextEntityID returns the next available EntityID.
func NextEntityID() EntityID {
entityID := nextEntityID
nextEntityID++
return entityID
}