mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Compare commits
9 commits
d5425fce82
...
b7cc9d5461
Author | SHA1 | Date | |
---|---|---|---|
|
b7cc9d5461 | ||
|
1bfcba7422 | ||
|
c9b07433aa | ||
|
af13ea9f5f | ||
|
61e0df82ae | ||
|
1a7b1b02b6 | ||
|
872e5c9cdb | ||
|
4c5e5e1968 | ||
|
3815c62442 |
7 changed files with 462 additions and 275 deletions
|
@ -56,17 +56,21 @@ world:set(PreSimulation, Event, RunService.PreSimulation)
|
||||||
world:add(PreAnimation, Phase)
|
world:add(PreAnimation, Phase)
|
||||||
world:set(PreAnimation, Event, RunService.PreAnimation)
|
world:set(PreAnimation, Event, RunService.PreAnimation)
|
||||||
|
|
||||||
table.insert(jabby.public, {
|
jabby.register({
|
||||||
class_name = "World",
|
applet = jabby.applets.world,
|
||||||
name = "MyWorld",
|
name = "MyWorld",
|
||||||
|
configuration = {
|
||||||
world = world,
|
world = world,
|
||||||
debug = Name,
|
},
|
||||||
entities = {},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
jabby.public.updated = true
|
jabby.register({
|
||||||
|
applet = jabby.applets.scheduler,
|
||||||
table.insert(jabby.public, jabby_scheduler)
|
name = "Scheduler",
|
||||||
|
configuration = {
|
||||||
|
scheduler = jabby_scheduler,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
if RunService:IsClient() then
|
if RunService:IsClient() then
|
||||||
world:add(PreRender, Phase)
|
world:add(PreRender, Phase)
|
||||||
|
|
|
@ -5,4 +5,4 @@ registry = "https://github.com/UpliftGames/wally-index"
|
||||||
realm = "shared"
|
realm = "shared"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
jabby = "alicesaidhi/jabby@0.2.0-rc.3"
|
jabby = "alicesaidhi/jabby@0.2.0-rc.9"
|
||||||
|
|
|
@ -15,7 +15,7 @@ Add the following to your wally configuration:
|
||||||
::: code-group
|
::: code-group
|
||||||
|
|
||||||
```toml [wally.toml]
|
```toml [wally.toml]
|
||||||
jecs = "ukendio/jecs@0.2.3"
|
jecs = "ukendio/jecs@0.5.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@rbxts/jecs",
|
"name": "@rbxts/jecs",
|
||||||
"version": "0.5.3",
|
"version": "0.5.4",
|
||||||
"description": "Stupidly fast Entity Component System",
|
"description": "Stupidly fast Entity Component System",
|
||||||
"main": "jecs.luau",
|
"main": "jecs.luau",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -1262,7 +1262,7 @@ TEST("world:target", function()
|
||||||
|
|
||||||
local records = debug_world_inspect(world).records(e)
|
local records = debug_world_inspect(world).records(e)
|
||||||
CHECK(jecs.pair_first(world, pair(B, C)) == B)
|
CHECK(jecs.pair_first(world, pair(B, C)) == B)
|
||||||
CHECK(records[pair(B, C)].column > records[pair(A, E)].column)
|
CHECK(records[pair(B, C)] > records[pair(A, E)])
|
||||||
CHECK(world:target(e, A, 0) == B)
|
CHECK(world:target(e, A, 0) == B)
|
||||||
CHECK(world:target(e, A, 1) == C)
|
CHECK(world:target(e, A, 1) == C)
|
||||||
CHECK(world:target(e, A, 2) == D)
|
CHECK(world:target(e, A, 2) == D)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ukendio/jecs"
|
name = "ukendio/jecs"
|
||||||
version = "0.5.3"
|
version = "0.5.4"
|
||||||
registry = "https://github.com/UpliftGames/wally-index"
|
registry = "https://github.com/UpliftGames/wally-index"
|
||||||
realm = "shared"
|
realm = "shared"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
Loading…
Reference in a new issue