Skip to content

Commit 16adec7

Browse files
authored
Merge pull request #112 from pietdaniel/main
Fix typos in README (no queryable → not queryable, enttiy → entity)
2 parents 777d52c + d503b2f commit 16adec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ These are more like notes for docs. Take a look around, ask questions. Eventuall
447447
448448
This is where all data is stored. We have methods on entities but this is a bit of a trick, entities don't actually store any data and instead it is operating on the connected world. Each world has its own set of entities that do not overlap with another. Typically you only need one world.
449449
450-
Worlds can have traits, which is our version of a singleton. Use these for global resources like a clock. Each world gets its own entity used for world traits. This entity is no queryable but will show up in the list of active entities making the only way to retrieve a world trait with its API.
450+
Worlds can have traits, which is our version of a singleton. Use these for global resources like a clock. Each world gets its own entity used for world traits. This entity is not queryable but will show up in the list of active entities making the only way to retrieve a world trait with its API.
451451
452452
```js
453453
// Spawns an entity
@@ -533,7 +533,7 @@ entity.remove(Position)
533533

534534
// Checks if the entity has the trait
535535
// Return boolean
536-
const result = enttiy.has(Position)
536+
const result = entity.has(Position)
537537

538538
// Gets a snapshot instance of the trait
539539
// Return TraitInstance

0 commit comments

Comments
 (0)