Skip to content

Separate systems into files (or at least discrete methods)? #270

@cpowell

Description

@cpowell

This is perhaps more of a question/discussion than an issue. Does Flecs-Rust have the ability to organize systems either by file or by separate discrete method?

As my collection of systems expands, my fn setup_systems() method is growing longer and becoming an unwieldy giant wall-of-text. I'd love to have separate, easily-documentable methods: movement_system(), vision_system(), etc. Another possibly desirable outcome might be the ability to separate by file: movement_system.rs, for example.

Is there an example demonstrating how Flecs-Rust can do this? I've not been able to find any demo code that does so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions