From 27235382c99bd10c6d145c059329f05c4c585ea1 Mon Sep 17 00:00:00 2001 From: silly-spongus <159207316+silly-spongus@users.noreply.github.com> Date: Sun, 29 Sep 2024 04:14:39 -0300 Subject: [PATCH] Update query.md --- docs/api/query.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/docs/api/query.md b/docs/api/query.md index 3b4a40e..24aab6f 100644 --- a/docs/api/query.md +++ b/docs/api/query.md @@ -104,7 +104,6 @@ function query.archetypes(): { Archetype } Example: -::: code-group ```luau [luau] for i, archetype in world:query(Position, Velocity).archetypes() do local columns = archetype.columns @@ -121,23 +120,6 @@ for i, archetype in world:query(Position, Velocity).archetypes() do end ``` -```ts [typescript] -for (const [i, archetype] of world.query(Position, Velocity).archetypes()) { - const columns = archetype.columns; - const field = archetype.records; - - const P = field[Position]; - const V = field[Velocity]; - - for (const [row, entity] of archetype.entities) { - local position = columns[P][row]; - local velocity = columns[V][row]; - // Do something - } -} -``` -::: - :::info This function is meant for internal usage. Use this if you want to maximize performance by inlining the iterator. :::