mirror of
https://github.com/Ukendio/jecs.git
synced 2025-11-14 15:32:53 +00:00
Merge d89c50ce5e into 07593a4b99
This commit is contained in:
commit
9a1dca6bd8
2 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ export default defineConfig({
|
||||||
{ text: "jecs", link: "/api/jecs" },
|
{ text: "jecs", link: "/api/jecs" },
|
||||||
{ text: "World", link: "/api/world" },
|
{ text: "World", link: "/api/world" },
|
||||||
{ text: "Query", link: "/api/query" },
|
{ text: "Query", link: "/api/query" },
|
||||||
|
{ text: "Observers", link: "/api/observers" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ The observers addon is included with jecs and can be imported directly:
|
||||||
|
|
||||||
```luau
|
```luau
|
||||||
local jecs = require(path/to/jecs)
|
local jecs = require(path/to/jecs)
|
||||||
local observers_add = require(path/to/jecs/addons/observers)
|
local observers_add = require(path/to/jecs/addons/ob)
|
||||||
|
|
||||||
local world = observers_add(jecs.world())
|
local world = observers_add(jecs.world())
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue