update docs

This commit is contained in:
wooshings
2026-10-27 22:00:12 -07:00
parent dddffcec43
commit 3804ce3bd7
+4 -1
View File
@@ -36,7 +36,9 @@ systems never see the app itself, only the world
```odin ```odin
import ecs "shoal/src" 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. 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 ```odin
ExampleComponent :: struct {} 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. 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.