fix: Packaging problems, chore: Bump jecs
"+ Packages were properly shipped with dist, but were shipped with a .project.json pointing to lib" -m "+ Bump jecs to the latest source" -m "+ Bump jecs-utils to v0.1.2 and release"
This commit is contained in:
parent
64be498117
commit
4216bdfead
6 changed files with 17 additions and 24 deletions
|
@ -3,4 +3,4 @@ local spawn = require("util/spawn")
|
||||||
|
|
||||||
spawn.start("rojo sourcemap dev.project.json -o sourcemap.json")
|
spawn.start("rojo sourcemap dev.project.json -o sourcemap.json")
|
||||||
spawn.start("darklua process --config .darklua.json lib/ dist/", { env = { ROBLOX_DEV = "false" } })
|
spawn.start("darklua process --config .darklua.json lib/ dist/", { env = { ROBLOX_DEV = "false" } })
|
||||||
spawn.start("rojo build build.project.json -o build.rbxm")
|
spawn.start("rojo build default.project.json -o build.rbxm")
|
||||||
|
|
|
@ -26,7 +26,7 @@ while true do
|
||||||
local commit_title = stdio.prompt("text", "Commit title -- leave blank to stop committing")
|
local commit_title = stdio.prompt("text", "Commit title -- leave blank to stop committing")
|
||||||
if not commit_title or commit_title == "" then
|
if not commit_title or commit_title == "" then
|
||||||
print("Stopping commit")
|
print("Stopping commit")
|
||||||
break
|
continue
|
||||||
end
|
end
|
||||||
|
|
||||||
local commit_messages = ""
|
local commit_messages = ""
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"name": "jecs-utils",
|
|
||||||
"tree": {
|
|
||||||
"$path": "dist"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jecs-utils",
|
"name": "jecs-utils",
|
||||||
"tree": {
|
"tree": {
|
||||||
"$path": "lib"
|
"$path": "dist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -727,7 +727,6 @@ local function world_add(world: World, entity: i53, id: i53): ()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Symmetric like `World.add` but idempotent
|
|
||||||
local function world_set(world: World, entity: i53, id: i53, data: unknown): ()
|
local function world_set(world: World, entity: i53, id: i53, data: unknown): ()
|
||||||
local entityIndex = world.entityIndex
|
local entityIndex = world.entityIndex
|
||||||
local record = entityIndex.sparse[entity]
|
local record = entityIndex.sparse[entity]
|
||||||
|
@ -1020,38 +1019,38 @@ do
|
||||||
if idr_t then
|
if idr_t then
|
||||||
for archetype_id in idr_t.cache do
|
for archetype_id in idr_t.cache do
|
||||||
local children = {}
|
local children = {}
|
||||||
local idr_o_archetype = archetypes[archetype_id]
|
local idr_t_archetype = archetypes[archetype_id]
|
||||||
|
|
||||||
local idr_o_types = idr_o_archetype.types
|
local idr_t_types = idr_t_archetype.types
|
||||||
|
|
||||||
for _, child in idr_o_archetype.entities do
|
for _, child in idr_t_archetype.entities do
|
||||||
table.insert(children, child)
|
table.insert(children, child)
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, id in idr_o_types do
|
for _, id in idr_t_types do
|
||||||
if not ECS_IS_PAIR(id) then
|
if not ECS_IS_PAIR(id) then
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
|
local object = ECS_ENTITY_T_LO(id)
|
||||||
local id_record = component_index[id]
|
if object == delete then
|
||||||
|
local id_record = component_index[id]
|
||||||
if id_record then
|
|
||||||
local flags = id_record.flags
|
local flags = id_record.flags
|
||||||
if bit32.band(flags, ECS_ID_DELETE) ~= 0 then
|
if bit32.band(flags, ECS_ID_DELETE) ~= 0 then
|
||||||
for _, child in children do
|
for _, child in children do
|
||||||
-- Cascade deletions of it has Delete as component trait
|
-- Cascade deletions of it has Delete as component trait
|
||||||
world_delete(world, child, destruct)
|
world_delete(world, child, destruct)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
break
|
||||||
else
|
else
|
||||||
local object = ECS_ENTITY_T_LO(id)
|
for _, child in children do
|
||||||
if object == delete then
|
world_remove(world, child, id)
|
||||||
for _, child in children do
|
|
||||||
world_remove(world, child, id)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
archetype_destroy(world, idr_t_archetype)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "mark-marks/jecs-utils"
|
name = "mark-marks/jecs-utils"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
registry = "https://github.com/UpliftGames/wally-index"
|
registry = "https://github.com/UpliftGames/wally-index"
|
||||||
realm = "shared"
|
realm = "shared"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue