copygirl
1c44cf61c7
Make Entity.getMut return non-nullable pointer
1 year ago
copygirl
1b303d0b3a
Add Entity.getRef function
1 year ago
copygirl
e695213f65
Rename getX() functions to simply x()
1 year ago
copygirl
772908b3c1
Update Zig and Flecs, big refactor
1 year ago
copygirl
10ce815c2a
Add Entity.getChildren
1 year ago
copygirl
4e101a1643
Add Entity.getTargets
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
1a678d1f2f
Add entity.get_mut function
1 year ago
copygirl
c8ec920290
Fix incorrect arg in Entity.init
1 year ago
copygirl
4001570462
Add Entity.add and .remove functions
2 years ago
copygirl
09b018ecec
Make Path parts sentinel terminated
...
This means Entity.init doesn't need to allocate.
2 years ago
copygirl
f58c71016b
Some doc changes regarding ownership
2 years ago
copygirl
8d0edc12f3
Rename Entity.new to init, allow passing id
2 years ago
copygirl
680852f4f8
Add World.getScope and .setScope functions
2 years ago
copygirl
f259c9b821
Add Entity.has to check if entity has a value
2 years 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
2 years ago
copygirl
cf60a43e10
Entity.init improvements
...
- Move EntityConfig to Entity.Config
- Now able to specify .parent and .path
- Add "Entity_init_id_path" test
2 years ago
copygirl
d639e8e5a9
Add Entity.getPath
2 years ago
copygirl
15640c1b56
Add way to get/set Entity name/symbol
2 years ago
copygirl
4b7be3e1f7
Improved error handling
...
- Add FlecsError error enum
- Add function to get last Flecs error
- Return FlecsError where applicable
- Some functions don't return "Self" anymore
- Hacky workaround for dependency loop bug
2 years ago
copygirl
e3627fda0c
Remove some duplicate code
2 years ago
copygirl
846f6d0a78
New entity initialization code
...
- Add util.anyToId and .anyToEntity
Used to convert any compatible value
to an `ecs_id_t` / `ecs_entity_t`
- Add World.entity and Entity.new
Allows adding any amount of ids to
the newly created entity via a tuple.
2 years ago
copygirl
1ee748cbbf
Have Entity.set return itself
2 years ago
copygirl
bb5f20e810
Add Pair, functions and docs to Id and Entity
2 years ago
copygirl
41d5155d4d
Implement some things, first test success?
2 years ago
copygirl
0c6477c852
Various inital workings
2 years ago