mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
docs: fix syntax in ts example (#146)
This commit is contained in:
parent
de56723f07
commit
d6f4d782a2
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ print(world:has(Entity, Ragdolled))
|
||||||
|
|
||||||
```ts [typescript]
|
```ts [typescript]
|
||||||
const IsMoving = world.component();
|
const IsMoving = world.component();
|
||||||
const Ragdolled = world.entity(); -- This is a tag, meaning it won't contain data
|
const Ragdolled = world.entity(); // This is a tag, meaning it won't contain data
|
||||||
const Health = world.component<number>();
|
const Health = world.component<number>();
|
||||||
|
|
||||||
const Entity = world.entity();
|
const Entity = world.entity();
|
||||||
|
|
Loading…
Reference in a new issue