#What is the current (0.9.1) way to order systems?

5 messages · Page 1 of 1 (latest)

scarlet kettle
#

Haven't worked with Bevy in a couple years, what is the recommended/idiomatic way of ordering systems?
i can see .add_stage_after() but IIRC, stages are on their way out so I'm not sure if that's right

vocal stratus
#

There are two ways depending on your use case

#

You can either use labels:

app
    .add_system(other)
    .add_system(mine.after(other))
// or
enum Systems {Other, Bar, Baz}
app
    add_system(other.label(Systems::Other))
    .add_system(mine.after(Systems::Other))
``` which order systems in the same stage, this is (1)
#

Or you can use stages (2). Which you'd want if depend on the effect of Commands crated in other in mine.