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
| 12 | // nothing more. It belongs to any amount of Systems, and has a number of |
| 13 | // Components |
| 14 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected