Architecture
The framework in one page. If you read nothing else, read this.
Four layers
Module names encode their layer: each top-level folder of the plugin is one module.
AFS_ — Systems. The load-bearing pieces: the pawns, the interaction stacks (grip, select, gaze, overlap, teleport, laser, locomotion), the UI design system, spatial UI, highlighting, snapping and level loading.
AFM_ — Modules. Self-contained capabilities that attach to actors: state values, replication, spawning, spectating, panels, splines, visibility, teleporting, camera fade, widget interaction. The ability and interaction base classes also live here, in AFM_Abilities.
AFA_ — Assets. Shared colours, icons, materials and sounds, plus the sound class hierarchy the rest of the framework mixes through.
AFU_ — Utilities. The debug overlay and the branded intro level.
AFL_ — Libraries. Shared function libraries, used from above rather than from inside the stack.
AF_Examples — the showrooms: one map per feature, the hub that connects them, and the game mode and pawns they run on.
Dependency direction
Dependencies point downward only. Assets depend on nothing. Modules depend on Assets. Systems depend on Modules and Assets. The Examples depend on everything above them. Nothing in a lower layer references a higher one, which is what makes it possible to take a subset of the framework.
AFM_Abilities and AFL_Libraries are the two roots — almost everything depends on one or both.
What to read next
- Abilities & interactions — the central contract.
- The blocker system — how activation is managed.
- Platforms & pawns — how one content set serves three targets.