-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add method * Remove unnecessary shadowed variable
- Loading branch information
Showing
5 changed files
with
112 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Jecs | ||
|
||
Jecs. Just an Entity Component System. | ||
|
||
## Properties | ||
|
||
### World | ||
```luau | ||
jecs.World: World | ||
``` | ||
|
||
### Wildcard | ||
|
||
### z<> | ||
|
||
## Functions | ||
|
||
### pair() | ||
```luau | ||
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. | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters