Skip to content

Tutorial advanced

Eight chapters on the features that make japes' scheduler hum — events, per-system state, stage ordering, multi-threading, archetype narrowing, and the escape hatches (@Where, @Exclusive, @RunCondition) for when the common path isn't enough.

# Chapter Topic
9 Events EventReader<E> / EventWriter<E>
10 Local<T> Per-system persistent mutable state
11 Stages and ordering before / after, default stage names
12 Multi-threading Executors.multiThreaded(), disjoint-access parallelism
13 Query filters — @With / @Without Archetype narrowing without binding
14 Field filters — @Where Per-entity value predicates
15 @Exclusive systems Single-threaded bulk edits
16 Run conditions @RunCondition / @RunIf for gating

Chapters are mostly independent; pick what you need. The only hard dependency is that multi-threading assumes you understand Commands from the basics section.