selene_codegen

    Source generator for Selene ECS component and resource declarations

    Download zip
    Author
    Version
    0.39.2
    License
    Apache-2.0
    Last updated
    3 hours ago
    Downloads
    4

    #Selene ECS code generator

    Generate a MoonBit companion file for #selene.component and #selene.resource declarations.

    moonx Milky2018/selene_codegen@0.39.2 movement.mbt movement.g.mbt

    Pin the generator version used by your project. See the Selene ECS guide for package imports and dev_build configuration.

    Use --check source.mbt ... to verify the generated companions without writing files. CI can pass all tracked MoonBit sources to detect missing companions.

    The resource marker generates a type identity. Initialize its value explicitly with world.insert_resource(value) or app.insert_resource(value). Read it with world.resource(), or use world.get_resource() to handle a missing value. Resource markers with factory arguments are rejected.

    CodegenError

    type CodegenError

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsCLIBuild queueStatistics

    Ā© 2026 mooncakes.io