Commit graph

18 commits

Author SHA1 Message Date
dbeee752b7 Speed up searching for ecs table columns using a hash_map<uuid, column_id> 2023-08-24 16:26:29 +03:00
d3fa7fdfea Make ecs::entity_accessor::get throw the documented exception 2023-08-24 16:19:49 +03:00
6bab38a545 Better ecs::entity_container documentation 2023-08-24 10:48:57 +03:00
3701df15f4 Support creating new ecs entities while iterating over them 2023-08-23 17:46:50 +03:00
d7babe6a0f Fix destroying ecs tables 2023-08-23 17:00:42 +03:00
b99371dc29 Support removing ecs entities while iterating over them using apply 2023-08-23 16:10:39 +03:00
c0668e2de2 Bugfix in ecs entity creation in case a table with the same components but in a different order already exists 2023-08-23 14:47:26 +03:00
72508eb445 Support ecs::entity_container::batch_apply & store full entity handles (instead of entity IDs) in ECS tables 2023-08-23 12:58:00 +03:00
0b562a26c1 Add entity_container to ECS system arguments; make both entity_container and entity_handle optional arguments 2023-08-23 12:22:50 +03:00
0f621a9f3f Add ecs::entity_container::attach/detach declarations (no implementation yet) 2023-08-23 00:05:12 +03:00
fee1f647b2 Add declare_uuid macro to simplify creating ecs component classes 2023-08-23 00:04:41 +03:00
9f36dfc0e4 Make compilation fail if ecs::entity_container::create is called with several equal component types 2023-08-22 23:24:49 +03:00
c59a28433a Better ecs::entity_accessor interface 2023-08-22 23:15:56 +03:00
82682c0317 Refactor ecs::entity_container & add documentation 2023-08-22 22:36:04 +03:00
c1991cbb57 ECS library wip: support explicit query cache 2023-08-22 21:18:53 +03:00
e0e0df8128 ECS library wip & tests 2023-08-22 20:30:04 +03:00
63008d62ff ECS library wip 2023-08-22 14:53:03 +03:00
2667d1aadb New ECS library wip 2023-08-19 15:21:17 +03:00