Skip to content
简体中文

Organize project dependencies ​

LayerExample responsibility
DomainRun state, scoring, and invariants
ApplicationStart, resume, save, and exit
Host adaptersScene tree, files, and rendering
Composition rootBuild dependencies, register services, start, and stop

Pass dependencies to use cases through their constructors. Define interfaces where the application crosses a real host boundary. Add rules and adapters under the feature they serve. See the advanced Godot project for a runnable structure.

Apache License 2.0