v1.0.0 — Initial Release
Entity Generator v1.0.0
A header-only C++23 library for generating entities with extensible, user-defined components.
Features
- Entity Generation — custom components, each producing a random value
- Extensible Component Interface — implement
componentto define generators for any type - Component Dependencies —
generation_contextwithctx.has()/ctx.get<T>() - Reproducible Randomness — per-call
generate(seed)and generator-levelseed()/unseed() - Typed Retrieval —
entity.get<T>(key)with full type safety - Selective Generation — all components or a specific subset
- Fluent API — chain
add(),remove(),seed(),unseed() - Composable — wrap name-generator and nickname-generator
Getting Started
Drop dasmig/entitygen.hpp and dasmig/random.hpp into your project. Requires C++23.
Dependencies
- effolkronium/random v1.4.1 (vendored)