Compare commits

...

3 commits

Author SHA1 Message Date
Ukendio
5dba6e7bac Fix typescript example
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run
2025-05-18 23:05:26 +02:00
Ukendio
0541f80b5d Fix hyperlinks 2025-05-18 23:02:16 +02:00
Ukendio
fd685537ea Fix docs issues 2025-05-18 22:59:07 +02:00
3 changed files with 5 additions and 11 deletions

View file

@ -25,10 +25,6 @@ export default defineConfig({
}, },
], ],
"/learn/": [ "/learn/": [
{
text: "Overview",
items: [{ text: "Overview", link: "/learn/overview" }],
},
{ {
text: "API Reference", text: "API Reference",
items: [ items: [

View file

@ -89,6 +89,7 @@ print(`${world.get(Position, jecs.Name)} is a Component: ${world.has(Position, j
### Entity ranges ### Entity ranges
Jecs reserves entity ids under a threshold (HI_COMPONENT_ID, default is 256) for components. That means that regular entities will start after this number. This number can be further specified via the `range` member function. Jecs reserves entity ids under a threshold (HI_COMPONENT_ID, default is 256) for components. That means that regular entities will start after this number. This number can be further specified via the `range` member function.
::: code-group
```luau [luau] ```luau [luau]
world:range(1000, 5000) -- Defines the lower and upper bounds of the entity range respectively world:range(1000, 5000) -- Defines the lower and upper bounds of the entity range respectively
@ -98,14 +99,13 @@ print(e)
-- 1000 -- 1000
``` ```
```typescript [typescript] ```typescript [typescript]
world.range(1000, 5000) -- Defines the lower and upper bounds of the entity range respectively world.range(1000, 5000) // Defines the lower and upper bounds of the entity range respectively
local e = world.entity() const e = world.entity()
print(e) print(e)
// Output: // Output:
// 1000 // 1000
``` ```
```
::: :::
### Hooks ### Hooks

View file

@ -32,8 +32,6 @@
- [Awesome Entity Component System (link collection related to ECS) - Jeongseok Lee](https://github.com/jslee02/awesome-entity-component-system) - [Awesome Entity Component System (link collection related to ECS) - Jeongseok Lee](https://github.com/jslee02/awesome-entity-component-system)
- [Hibitset - DOCS.RS](https://docs.rs/hibitset/0.6.3/hibitset/) - [Hibitset - DOCS.RS](https://docs.rs/hibitset/0.6.3/hibitset/)
------------------
## Addons ## Addons
A collection of third-party jecs addons made by the community. If you would like to share what you're working on, [submit a pull request](/learn/contributing/pull-requests#addons)! A collection of third-party jecs addons made by the community. If you would like to share what you're working on, [submit a pull request](/learn/contributing/pull-requests#addons)!
@ -43,10 +41,10 @@ A collection of third-party jecs addons made by the community. If you would like
#### [jabby](https://github.com/alicesaidhi/jabby) #### [jabby](https://github.com/alicesaidhi/jabby)
A jecs debugger with a string-based query language and entity editing capabilities. A jecs debugger with a string-based query language and entity editing capabilities.
#### [jecs_entity_visualiser](https://github.com/Ukendio/jecs/blob/main/addons/entity_visualiser.luau) #### [jecs_entity_visualiser](https://github.com/Ukendio/jecs/blob/main/tools/entity_visualiser.luau)
A simple entity and component visualiser in the output A simple entity and component visualiser in the output
#### [jecs_lifetime_tracker](https://github.com/Ukendio/jecs/blob/main/addons/lifetime_tracker.luau) #### [jecs_lifetime_tracker](https://github.com/Ukendio/jecs/blob/main/tools/lifetime_tracker.luau)
A tool for inspecting entity lifetimes A tool for inspecting entity lifetimes
### Helpers ### Helpers