eigen_codegen 0.1.3
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.