copygirl
12e658f334
Remove unused .gitmodules
8 months ago
copygirl
aa96ef73ad
Set component names explicitly
...
.. rather than guessing from type name,
which can be pretty inaccurate at times.
8 months ago
copygirl
5425ba89d5
Support pointer types in Entity.set
8 months ago
copygirl
f48a6884ca
Fix being unusable as library
8 months ago
copygirl
0ad372207b
Include Flecs v3.2.11, remove submodule
8 months ago
copygirl
1629281168
Update some (doc) comments
8 months ago
copygirl
85fa141d4d
Hook into Flecs log and abort (potentially WIP)
8 months ago
copygirl
0797eff416
Test to check reusing components
8 months ago
copygirl
fa89eca82d
Update REST API test
8 months ago
copygirl
c992fa2f2f
Test to check multiple contexts work
8 months ago
copygirl
99ae978f20
Ensure EntityHolder is unique
...
This change is required for new versions of Zig
to consider the EntityHolder struct to be unique.
This is done by capturing the ctx and type in a
compile time context.
See also: https://github.com/ziglang/zig/pull/19190
8 months ago
copygirl
bde3ec33e5
Fix missing newlines in errors in Context.lookupAndRegister
8 months ago
copygirl
8719bfeebe
Add world.pair function
8 months ago
copygirl
90e1fba5fd
Fix Pair.init and add .fromRaw constructor
8 months ago
copygirl
dbfe13af58
Fix Flecs OS API, move to separate file
8 months ago
copygirl
12280219cb
Change World.enableRest to only take port
9 months ago
copygirl
b170082b51
Support Flecs REST API
9 months ago
copygirl
2b7c8528d3
Panic when Context.lookup returns 0
9 months ago
copygirl
2cf56693e2
Use builtin Flecs types
9 months ago
copygirl
d9882bf86e
Add lookups for (some) builtin Flecs types
9 months ago
copygirl
e728e47136
Fix and rename lookupType
9 months ago
copygirl
ffddcdf9b9
Fix Entity.name / symbol not returning null, add tests
9 months ago
copygirl
ae34763f71
Add lookupSymbol, lookupChild, rename lookupPath
9 months ago
copygirl
96e511bfc1
Add Entity formatting
9 months ago
copygirl
b20caf4e36
Fix use of invalidFmtError
9 months ago
copygirl
846b738bf5
Use default field values for Probe struct
9 months ago
copygirl
e0bdf5f182
Don't use zeroes and zeroInit for C structs
9 months ago
copygirl
12864ba14a
Let Iter hold onto its own allocator
9 months ago
copygirl
c9bf64a34c
Remove reference to main.zig where possible
9 months ago
copygirl
7f3e79781e
Move Context to its own file
9 months ago
copygirl
ea93c6026a
Don't usingnamespace all of errors.zig
9 months ago
copygirl
2bc8f54a83
Use "flecszigble" name when important this lib
9 months ago
copygirl
deb1104944
Split Context.lookup into lookup and lookupMut
9 months ago
copygirl
33dfbe8a9e
Use defer in Path tests
9 months ago
copygirl
7fc5dbba4d
Remove Path from Context
9 months ago
copygirl
c092465fce
Add tests for Entity get/set functions
9 months ago
copygirl
01d5ed7e48
Allow specifying pairs in Entity get/set functions
9 months ago
copygirl
5273084f99
Add doc comments for Entity.get / getRef / getMut
9 months ago
copygirl
1c44cf61c7
Make Entity.getMut return non-nullable pointer
9 months ago
copygirl
1b303d0b3a
Add Entity.getRef function
9 months ago
copygirl
e695213f65
Rename getX() functions to simply x()
9 months ago
copygirl
e3ce7b52f2
Improve README example
9 months ago
copygirl
248f0af204
Rename Iter.count and .deltaTime
9 months ago
copygirl
772908b3c1
Update Zig and Flecs, big refactor
9 months ago
copygirl
10ce815c2a
Add Entity.getChildren
1 year ago
copygirl
1c9c65d8d2
Add world.term (temporary?)
1 year ago
copygirl
4e101a1643
Add Entity.getTargets
1 year ago
copygirl
2ff2579d87
Add World.lookupByPath
1 year ago
copygirl
2e36be7ad2
Add singleton API to World
...
- singleton() combines component() with set()
- get() looks up a singleton component value
- set() sets it, though singleton must exist before
1 year ago
copygirl
2a41366bd8
Have Entity.get return value instead of pointer
1 year ago