copygirl
e0bdf5f182
Don't use zeroes and zeroInit for C structs
10 months ago
copygirl
12864ba14a
Let Iter hold onto its own allocator
10 months ago
copygirl
c9bf64a34c
Remove reference to main.zig where possible
10 months ago
copygirl
7f3e79781e
Move Context to its own file
10 months ago
copygirl
ea93c6026a
Don't usingnamespace all of errors.zig
10 months ago
copygirl
2bc8f54a83
Use "flecszigble" name when important this lib
10 months ago
copygirl
deb1104944
Split Context.lookup into lookup and lookupMut
10 months ago
copygirl
33dfbe8a9e
Use defer in Path tests
10 months ago
copygirl
7fc5dbba4d
Remove Path from Context
10 months ago
copygirl
c092465fce
Add tests for Entity get/set functions
10 months ago
copygirl
01d5ed7e48
Allow specifying pairs in Entity get/set functions
10 months ago
copygirl
5273084f99
Add doc comments for Entity.get / getRef / getMut
10 months ago
copygirl
1c44cf61c7
Make Entity.getMut return non-nullable pointer
10 months ago
copygirl
1b303d0b3a
Add Entity.getRef function
10 months ago
copygirl
e695213f65
Rename getX() functions to simply x()
10 months ago
copygirl
e3ce7b52f2
Improve README example
10 months ago
copygirl
248f0af204
Rename Iter.count and .deltaTime
10 months ago
copygirl
772908b3c1
Update Zig and Flecs, big refactor
10 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
copygirl
13936d11bb
Don't use @bitCast
1 year ago
copygirl
39bd61a66c
Fix Pair.getRelation and .getTarget
1 year ago
copygirl
1a678d1f2f
Add entity.get_mut function
1 year ago
copygirl
ceb1f4cd80
Fix Iter.field for non-owned components
1 year ago
copygirl
c8ec920290
Fix incorrect arg in Entity.init
1 year ago
copygirl
1b2bd5660e
Add world.quit function
1 year ago
copygirl
81858267ab
Add missing installHeader call
1 year ago
copygirl
4001570462
Add Entity.add and .remove functions
1 year ago
copygirl
09b018ecec
Make Path parts sentinel terminated
...
This means Entity.init doesn't need to allocate.
1 year ago
copygirl
f58c71016b
Some doc changes regarding ownership
1 year ago
copygirl
899cf8c10e
Add a couple more entity tests
1 year ago
copygirl
efd821aa87
Get rid of empty files for now
1 year ago
copygirl
f17fcb1329
Reset log level in tests that expect errors
1 year ago
copygirl
e664ee4afd
Add expect testing utility namespace
1 year ago
copygirl
f04bc1b093
Use Path.buildParts and .fromParts in tests
1 year ago
copygirl
f0a956318e
Make Path.fromParts not return error
1 year ago
copygirl
8c897607b5
Add a whole lot more Entity tests
1 year ago
copygirl
bd51b09ad6
Swap order of EntityPart.id and .name
1 year ago
copygirl
8d0edc12f3
Rename Entity.new to init, allow passing id
1 year ago
copygirl
50c5a83c90
Add Entity tests involving World.setScope
1 year ago
copygirl
680852f4f8
Add World.getScope and .setScope functions
1 year ago
copygirl
9faed20c54
Add Entity tests for adding and checking tags
1 year ago
copygirl
f259c9b821
Add Entity.has to check if entity has a value
1 year ago
copygirl
67a5c566a4
Add World.tag to created Tag by type
1 year ago
copygirl
a372768702
Implement Flecs' OS API alloc functions
...
- Add init(alloc) function to initialize Flecs interop
- Set Flecs' OS API functions to use given allocator
- Move World.allocator to a global allocator
1 year ago
copygirl
cf60a43e10
Entity.init improvements
...
- Move EntityConfig to Entity.Config
- Now able to specify .parent and .path
- Add "Entity_init_id_path" test
1 year ago