Pin the generator version used by your project. See theSelene ECS guidefor package imports and dev_build configuration.
Use --check source.mbt ... to verify the generated companions without writingfiles. CI can pass all tracked MoonBit sources to detect missing companions.
The resource marker generates a type identity. Initialize its value explicitlywith world.insert_resource(value) or app.insert_resource(value). Read itwith world.resource(), or use world.get_resource() to handle a missing value.Resource markers with factory arguments are rejected.