Commit graph

183 commits

Author SHA1 Message Date
40c62d621a Add util::dfs 2023-02-09 15:23:05 +03:00
fdcf0d5b88 MacOS fixes 2023-01-16 23:53:34 +03:00
e83df0d965 Fix util::make_pathfinder 2023-01-15 22:41:29 +03:00
7376109e96 util::span interface improvements 2023-01-10 03:35:21 +03:00
098c3e84b1 Add common directories to file dialog 2023-01-05 19:30:00 +03:00
9c70c8e19e Add util::range deduction guides 2023-01-02 23:07:20 +03:00
7d55b374e4 Add util::open_url 2022-12-18 18:14:43 +03:00
aa8f2faf75 Use util::hstring in util::resource_container 2022-11-30 18:20:59 +03:00
ab99236adc Use util::hstring in util::ecs 2022-11-30 18:16:55 +03:00
9146c19ccd Add util::hstring - both owning & not owning string - for use to emulate heterogeneous containers 2022-11-30 18:16:47 +03:00
2d59777d60 Support searching ecs species by name 2022-11-09 23:06:25 +03:00
b00a74f431 Fix initializing ecs species components 2022-11-09 17:46:10 +03:00
07804bdeda Support ecs species behaviors 2022-10-29 14:46:06 +03:00
9489c1caef Pass ecs & species handle to behavior context 2022-10-29 10:26:16 +03:00
ca85b7ee18 Support creating entities with prescribes values of some components 2022-10-28 23:44:00 +03:00
20401bee45 Implement ecs constructors & destructors 2022-10-28 23:36:04 +03:00
55c3266343 Add util::resource_container - a simple name+id-based container 2022-10-28 19:04:08 +03:00
9b18e664e8 Replace ecs sparse component with default-constructed ones upon entity destruction 2022-10-28 16:05:58 +03:00
61885dde25 Add util::ecs::species() for iterating over all species 2022-10-27 20:59:34 +03:00
24917370ea Add util::hash_sequence 2022-10-27 17:51:05 +03:00
051e812358 Change default util::clock duration & clock type 2022-10-05 22:55:30 +03:00
d95807e320 Add util::to_shared 2022-10-05 22:53:52 +03:00
1aa5156002 Make ecs::entity_species a static member 2022-08-19 09:50:10 +03:00
876cbd7362 Support ecs behavior::begin called when starting iteration over a species 2022-08-19 09:49:41 +03:00
34ee3f0a6e Support ecs behavior forbidden components that prevent applying it to a certain species 2022-08-19 09:49:14 +03:00
4fae4bbbe4 Add event-based behavior & processor registration in ECS 2022-08-16 14:36:35 +03:00
2482a8c224 Support adding arbitrary arguments to ECS behavior call 2022-08-16 10:14:21 +03:00
f22b45c5e8 ECS handles refactor: handle includes species & version 2022-08-15 19:40:50 +03:00
8a7c9ea263 Add util::object_pool 2022-08-10 11:45:48 +03:00
f39cc15bd8 Add util::spatial_array::size,min,max 2022-08-10 11:45:40 +03:00
b3304e7785 Fix uninitialized values in util::spatial_array 2022-08-08 11:19:38 +03:00
e0a185d349 Fix util::spatial_array::end 2022-08-07 11:20:04 +03:00
5afd76e214 Add util::spatial_array::begin/end 2022-08-05 16:12:22 +03:00
8f6bd5b5fc Add util::spatial_array asserts in case of wrong number of indices 2022-08-05 16:12:13 +03:00
2421dee3b7 Default-initialize elements in util::spatial_array 2022-08-05 16:11:45 +03:00
649c051b61 Add auto-expanding in all directions util::spatial_array 2022-08-05 15:54:58 +03:00
a29cbf793e Fix removing packed entities 2022-07-26 14:31:43 +03:00
f3d005b4f3 Support util::statistics_lite::push(value,count) 2022-06-26 16:14:51 +03:00
dc232b8fba Support edge visit callbacks in util::pathfinder 2022-06-26 12:27:38 +03:00
8a7e95a6d1 Fix pathfinding in case start = end 2022-06-24 15:06:28 +03:00
c6f971a36f Support removing entities while iterating in util::ecs 2022-06-23 17:28:34 +03:00
09ecce5e6d Add A* pathfinding implementation in util 2022-06-22 00:42:15 +03:00
05608cc17c Don't allow indexing util::array with wrong number of indices 2022-06-20 17:32:50 +03:00
70f3b68077 Implement util::ecs packed/sparse policy 2022-06-19 22:26:22 +03:00
598ad99e65 Fix util::array resizing - move elements instead of copying 2022-06-18 15:18:39 +03:00
6d0a8cec55 Add macro helper for generating structs 2022-06-13 01:01:13 +03:00
9edf94be0c Clang compilation fixes 2022-06-11 13:58:54 +03:00
36123f0a7d Move profiler to a separate library to break io <- util dependence 2022-06-09 11:23:53 +03:00
82a81c4c77 Add util::flat_list::begin/end 2022-06-09 11:12:47 +03:00
15f8e04308 Fix util::flat_list::data() 2022-06-09 11:12:37 +03:00