proxy.golang.org : github.com/dradtke/ecs-go
Package ecs implements an Entity Component System library. Loosely inspired by the bevy ECS library for Rust, this implementation attempts to achieve something similar in Go. Each system is defined as a function that accepts as input any relevant components, which are identified by their type: The Position and Velocity types represent components, and the Movement system will be invoked on every object that contains an instance of both. Because it returns a Position, the object's matching component will be overriden with the return value, effectively updating the object's Position component on each iteration. See the examples and tests for additional usage patterns.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/dradtke/ecs-go
License: Apache-2.0
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/dradtke
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago