Documentation ¶
Overview ¶
Package arche is an archetype-based Entity Component System for Go.
See the sub-packages:
- Core API -- github.com/mlange-42/arche/ecs
- Generic queries -- github.com/mlange-42/arche/generic
- Advanced filters -- github.com/mlange-42/arche/filter
- Usage examples -- github.com/mlange-42/arche/examples
Directories ¶
Path | Synopsis |
---|---|
benchmark
module
|
|
Package ecs contains Arche's core API.
|
Package ecs contains Arche's core API. |
stats
Package stats provides the structs returned by ecs.World.Stats().
|
Package stats provides the structs returned by ecs.World.Stats(). |
Package examples contains examples for Arche.
|
Package examples contains examples for Arche. |
base
Demonstrates the core API that uses component IDs for access.
|
Demonstrates the core API that uses component IDs for access. |
change_listener
Demonstrates the use of a EntityEvent listener, notifying on changes to the component composition of entities.
|
Demonstrates the use of a EntityEvent listener, notifying on changes to the component composition of entities. |
filter
Demonstrates the logic filter API, which provides additional query flexibility on top of the core API.
|
Demonstrates the logic filter API, which provides additional query flexibility on top of the core API. |
generic
Demonstrates the generic API, which provides type-safety and convenience over the ID-based core API.
|
Demonstrates the generic API, which provides type-safety and convenience over the ID-based core API. |
locked_world
Demonstrates how to create, remove or alter entities, despite the World is locked during query iteration.
|
Demonstrates how to create, remove or alter entities, despite the World is locked during query iteration. |
random_access
Demonstrates generic access to arbitrary/random entities.
|
Demonstrates generic access to arbitrary/random entities. |
random_sampling
Demonstrates random sampling of a fixed number of entities from a query using Query.Step().
|
Demonstrates random sampling of a fixed number of entities from a query using Query.Step(). |
readme
The minimal example from the README using generic access.
|
The minimal example from the README using generic access. |
resources
Demonstrates the use of "Resources".
|
Demonstrates the use of "Resources". |
systems
Demonstrates how to implement systems.
|
Demonstrates how to implement systems. |
world_stats
Demonstrates using world and archetype statistics.
|
Demonstrates using world and archetype statistics. |
Package filter contains Arche's advanced logic filtering API.
|
Package filter contains Arche's advanced logic filtering API. |
Package generic contains Arche's generic API.
|
Package generic contains Arche's generic API. |
generate
Package generate is for generating the boilerplate code required for the generic API.
|
Package generate is for generating the boilerplate code required for the generic API. |
Click to show internal directories.
Click to hide internal directories.