From 3804ce3bd7bcf44e5920f143952fefa323995d8b Mon Sep 17 00:00:00 2001 From: wooshings Date: Tue, 27 Oct 2026 22:00:12 -0700 Subject: [PATCH] update docs --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80e4a81..97832ab 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,9 @@ systems never see the app itself, only the world ```odin import ecs "shoal/src" -app: ecs.App +main :: proc() { + app: ecs.App +} ``` you can run your app with `run()`. run takes a pointer to your app and drives its systems. @@ -96,6 +98,7 @@ components are plain structs. declare one and you're done. the data lives in the ```odin ExampleComponent :: struct {} +``` each world owns its own storages, keyed by the component's type: two worlds never share data, and a zero `ecs.World{}` is ready to use.