eigen_codegen 0.1.3 copy "eigen_codegen: ^0.1.3" to clipboard
eigen_codegen: ^0.1.3 copied to clipboard

Development-only Dart payload generator for EigenInteractive game contracts.

eigen_codegen #

Development-only code generation for EigenInteractive game contracts.

Add eigen_codegen as a development dependency, then generate the immutable Dart payload types and the two version-specific bases used by your game: a <Game>V<N>RulesBase carrying the wire payload codecs, and a <Game>V<N>LocalRulesBase carrying the state codec offline play additionally needs:

dart run eigen_codegen:generate_payloads \
  --contract ../server/game-contract.json \
  --output lib/game/generated/payloads.dart \
  --fixtures-output test/fixtures

Use the same command with --check in CI to reject generated drift. Runtime Flutter APIs live in eigen_flutter.

0
likes
150
points
228
downloads

Documentation

Documentation
API reference

Publisher

verified publishereigeninteractive.com

Weekly Downloads

Development-only Dart payload generator for EigenInteractive game contracts.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

args, code_builder, dart_style, pub_semver

More

Packages that depend on eigen_codegen