MCPcopy Create free account
hub / github.com/EngoEngine/ecs / BasicEntity

Struct BasicEntity

entity.go:14–19  ·  view source on GitHub ↗

A BasicEntity is simply a set of components with a unique ID attached to it, nothing more. It belongs to any amount of Systems, and has a number of Components

Source from the content-addressed store, hash-verified

12// nothing more. It belongs to any amount of Systems, and has a number of
13// Components
14type BasicEntity struct {
15 // Entity ID.
16 id uint64
17 parent *BasicEntity
18 children []*BasicEntity
19}
20
21// Identifier is an interface for anything that implements the basic ID() uint64,
22// as the BasicEntity does. It is useful as more specific interface for an

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected