Skip to content

v1.0.0 — Initial Release

Choose a tag to compare

@dasmig dasmig released this 02 Apr 20:32

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 component to define generators for any type
  • Component Dependenciesgeneration_context with ctx.has() / ctx.get<T>()
  • Reproducible Randomness — per-call generate(seed) and generator-level seed()/unseed()
  • Typed Retrievalentity.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