mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
docs: fix syntax in ts example
This commit is contained in:
parent
de56723f07
commit
98df228d5c
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ print(world:has(Entity, Ragdolled))
|
|||
|
||||
```ts [typescript]
|
||||
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 Entity = world.entity();
|
||||
|
|
Loading…
Reference in a new issue