copygirl
248f0af204
Rename Iter.count and .deltaTime
7 months ago
copygirl
772908b3c1
Update Zig and Flecs, big refactor
7 months ago
copygirl
10ce815c2a
Add Entity.getChildren
10 months ago
copygirl
1c9c65d8d2
Add world.term (temporary?)
10 months ago
copygirl
4e101a1643
Add Entity.getTargets
10 months ago
copygirl
2ff2579d87
Add World.lookupByPath
10 months 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
10 months ago
copygirl
2a41366bd8
Have Entity.get return value instead of pointer
10 months ago
copygirl
13936d11bb
Don't use @bitCast
10 months ago
copygirl
39bd61a66c
Fix Pair.getRelation and .getTarget
10 months ago
copygirl
1a678d1f2f
Add entity.get_mut function
10 months ago
copygirl
ceb1f4cd80
Fix Iter.field for non-owned components
10 months ago
copygirl
c8ec920290
Fix incorrect arg in Entity.init
10 months ago
copygirl
1b2bd5660e
Add world.quit function
10 months 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
efd821aa87
Get rid of empty files for now
1 year ago
copygirl
e664ee4afd
Add expect testing utility namespace
1 year ago
copygirl
f0a956318e
Make Path.fromParts not return error
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
680852f4f8
Add World.getScope and .setScope functions
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
copygirl
8e4a99bfe5
Rename FormatOptions.prefix to root_sep
1 year ago
copygirl
ab48fa440b
Add Path.equals
1 year ago
copygirl
edadf3e1df
Fix Path.buildParts
1 year ago
copygirl
51f82576af
Add Path.buildParts helper function
1 year ago
copygirl
d639e8e5a9
Add Entity.getPath
1 year ago
copygirl
4dbb7b84a8
Allow Path to handle numeric entity ids
1 year ago
copygirl
edea471785
All-around improvements to Path
...
- Use `FormatOptions` struct to specify
how paths get parsed and stringified
- Replace .alloc union with Allocator and
booleans specifying what the path owns
- Implement clone function
- Add some helper functions
- More and improved documentation
1 year ago
copygirl
9d0d30a608
Add WIP Path helper struct
1 year ago
copygirl
418bff8183
Add Pair to main.zig
1 year ago
copygirl
5ad3647da0
Add first Entity tests
1 year ago
copygirl
15640c1b56
Add way to get/set Entity name/symbol
1 year ago
copygirl
1632e53eae
Add World.initMinimal
1 year 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
1 year ago
copygirl
e3627fda0c
Remove some duplicate code
1 year 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.
1 year ago
copygirl
1ee748cbbf
Have Entity.set return itself
1 year ago
copygirl
82e2dbe2f2
Change Lookup field type to ecs_entity_t
1 year ago
copygirl
38baf0c54c
Rename lookup to lookupByType, add lookupAlive
1 year ago
copygirl
bb5f20e810
Add Pair, functions and docs to Id and Entity
1 year ago
copygirl
41d5155d4d
Implement some things, first test success?
1 year ago
copygirl
0c6477c852
Various inital workings
1 year ago
copygirl
e5d1a3ffd8
Initial commit
1 year ago