jecs/docs/api/jecs.md
Marcus 49305f73dd
Add archetypes method (#89)
* Add method

* Remove unnecessary shadowed variable
2024-07-28 02:39:19 +02:00

688 B

Jecs

Jecs. Just an Entity Component System.

Properties

World

jecs.World: World

Wildcard

z<>

Functions

pair()

function jecs.pair(
    first: Entity, -- The first element of the pair, referred to as the relationship of the relationship pair.
    object: Entity, -- The second element of the pair, referred to as the target of the relationship pair.
): number -- Returns the Id with those two elements

::: info

Note that while relationship pairs can be used as components, meaning you can add data with it as an ID, however they cannot be used as entities. Meaning you cannot add components to a pair as the source of a binding.

:::