parent
b69adecc1d
commit
fa500795af
6 changed files with 1372 additions and 1169 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -2,6 +2,19 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 0.7.0
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- `jecs.component_record` for retrieving the component_record of a component.
|
||||||
|
- `Column<T>` and `ColumnsMap<T>` types for typescript.
|
||||||
|
- `bulk_insert` and `bulk_remove` respectively for moving an entity to an archetype without intermediate steps.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- The fields `archetype.records[id]` and `archetype.counts[id` have been removed from the archetype struct and been moved to the component record `component_index[id].records[archetype.id]` and `component_index[id].counts[archetype.id]` respectively.
|
||||||
|
- Removed the metatable `jecs.World`. Use `jecs.world()` to create your World.
|
||||||
|
- Archetypes will no longer be garbage collected when invalidated, allowing them to be recycled to save a lot of performance during frequent deletion.
|
||||||
|
- Removed `jecs.entity_index_try_get_fast`. Use `jecs.entity_index_try_get` instead.
|
||||||
|
|
||||||
## 0.6.1
|
## 0.6.1
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -64,8 +64,8 @@ world:set(sara, Name, "sara")
|
||||||
|
|
||||||
print(getName(parent(sara)))
|
print(getName(parent(sara)))
|
||||||
|
|
||||||
for e in world:query(pair(ChildOf, alice)) do
|
for e, name in world:query(Name, pair(ChildOf, alice)) do
|
||||||
print(getName(e), "is the child of alice")
|
print(name, "is the child of alice")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Output
|
-- Output
|
||||||
|
|
|
@ -11,7 +11,7 @@ includes = [
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
name = "marked/jecs"
|
name = "marked/jecs"
|
||||||
repository = "https://git.devmarked.win/marked/jecs-pesde"
|
repository = "https://git.devmarked.win/marked/jecs-pesde"
|
||||||
version = "0.6.1"
|
version = "0.7.2"
|
||||||
|
|
||||||
[indices]
|
[indices]
|
||||||
default = "https://github.com/pesde-pkg/index"
|
default = "https://github.com/pesde-pkg/index"
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
format = 1
|
format = 1
|
||||||
name = "marked/jecs"
|
name = "marked/jecs"
|
||||||
version = "0.6.1"
|
version = "0.7.2"
|
||||||
target = "luau"
|
target = "luau"
|
||||||
|
|
|
@ -11,7 +11,7 @@ includes = [
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
name = "marked/jecs"
|
name = "marked/jecs"
|
||||||
repository = "https://git.devmarked.win/marked/jecs-pesde"
|
repository = "https://git.devmarked.win/marked/jecs-pesde"
|
||||||
version = "0.6.1"
|
version = "0.7.2"
|
||||||
|
|
||||||
[indices]
|
[indices]
|
||||||
default = "https://github.com/pesde-pkg/index"
|
default = "https://github.com/pesde-pkg/index"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue