Skip to content

Commit

Permalink
typos cql.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcofann authored Jan 4, 2025
1 parent d3111d3 commit aa099a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/cardinal/game/cql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Two functions are provided in the language that accept a variadic amount of comp

**Examples:**

- `CONTAINS(armComponent)` is a query for all entities that have a arm component. The entity can have more components than just the arm.
- `CONTAINS(armComponent)` is a query for all entities that have an arm component. The entity can have more components than just the arm.
- `CONTAINS(armComponent, legComponent)` is query for all entities that have both an arm component and a leg component. The entity can have more components than the arm and the leg.


Expand Down Expand Up @@ -92,4 +92,4 @@ You can use parenthesis to specify and change precedence in CQL.
- The above is a query for either an entity with only a leg component or an entity that does not have a health component and also does not have an attack component.

- Example: `(EXACT(legComponent) | !CONTAINS(healthComponent)) & !CONTAINS(attackComponent)`
- The above is the same query but with precedence changed. Now it is querying an entity with either exactly one leg component or does not have a health component. Additionally that entity must not ever contain a attack component.
- The above is the same query but with precedence changed. Now it is querying an entity with either exactly one leg component or does not have a health component. Additionally that entity must not ever contain an attack component.

0 comments on commit aa099a9

Please sign in to comment.