# Bendvy ECS core A Bevy-style ECS for Bend 2, with typed components and resources, queries, declared system access, schedules, deferred commands, rollback, events, relations, inspection and persistence. The API is evolving. This README describes the exported BendHub package. Its module filenames use underscores; the repository source tree uses hyphens. The package keeps the corresponding C and JavaScript effects beside their Bend modules. ## Imports Import individual modules for the operations your application needs. For a program beside a local exported copy: ```bend import Base import ./world_io.bend as WorldIO import ./column.bend as Column import ./capabilities.bend as Cap ``` For a Hub dependency, replace `./` with the immutable package import prefix reported by that publication. Use the chosen publication's version or content hash; do not infer a package version from the compiler version. [bendvy.bend](bendvy.bend) collects the shipped source closure. It is the publication entry, not a facade that re-exports every gameplay operation. Start with the [world creation API](world_io.bend) and [capability operations](capabilities.bend). ## Ownership and examples Worlds and storage are affine owners: operations consume and return them. Components may contain arbitrary `Type` payloads, not just copyable `Data`. Gameplay accesses components through declared capabilities; raw constructors and storage adapters are trusted schema and integration interfaces. Complete runnable programs and their checks live in the repository: [scheduled health](https://github.com/dearlordylord/bendvy/tree/master/examples/scheduled-health), [health decay](https://github.com/dearlordylord/bendvy/tree/master/examples/health-decay), and the [examples index](https://github.com/dearlordylord/bendvy/tree/master/examples). Those programs use repository paths; adapt their import prefixes and hyphenated module filenames to the chosen exported package. The repository's [check policy](https://github.com/dearlordylord/bendvy/blob/master/docs/check-policy.md) records compiler support. Historical package publications retain the compiler scope recorded for those publications. ## License See the accompanying [LICENSE](LICENSE) for the package's license text.