Commit graph

112 commits

Author SHA1 Message Date
20302885b5 Add enum_range::size 2022-02-09 23:12:55 +03:00
ef80db2620 Add hash for std::pair 2022-02-08 20:34:53 +03:00
754566ec15 Add stream output operator for enums 2022-02-07 13:39:53 +03:00
834d9408ff Add psemek_declare_enum macro for common enum utilities 2022-02-04 18:01:07 +03:00
460632a118 Fix util::timer: add timer duration to tracked time point instead of replacing it with now() 2022-02-02 19:45:27 +03:00
134ec550f5 Add util::span::front,back 2022-01-20 20:32:38 +03:00
2d05fe9ea9 Add smooth_updater::value 2021-12-24 21:01:16 +03:00
ec08a4a281 Add util::updater and smooth_updater 2021-12-22 20:35:21 +03:00
a397a21628 Add array::assign 2021-12-01 21:20:21 +03:00
249ca33aab Support indexing util::array with arbitrary array-like types 2021-10-30 22:04:50 +03:00
8571bc9c6d Behavior tree retry node: support retrying a fixed number of times 2021-10-30 13:14:02 +03:00
25c93a7699 Behavior tree wait node fix 2021-10-27 18:42:04 +03:00
5bbd67a0ba Refactor behavior trees: use flat_list & ids for instances, use a binary tree to sort suspended instances 2021-10-24 19:07:54 +03:00
23828de853 Behavior tree: add repeat_while primitive 2021-10-24 12:36:56 +03:00
32a402573d Behavior tree: fix on_event node event handling 2021-10-23 11:12:56 +03:00
9641703375 Behavior trees: implement events in updater & include node arguments in event handler 2021-10-23 10:29:30 +03:00
73bf540967 Fix dt in behavior_tree::updater 2021-10-17 11:44:35 +03:00
6e4db713d3 More behavior tree generic nodes 2021-10-17 00:49:11 +03:00
b8d03d41a4 Add basic behavior_tree implementation 2021-10-16 13:26:37 +03:00
a0e81aaf32 Make util::span constructible from any container with data() and size() methods 2021-08-22 13:11:10 +03:00
32529137eb Default-construct components for created entities in util::ecs 2021-08-17 11:42:26 +03:00
c55bea1228 Add species name to ecs behavior context 2021-08-14 10:23:56 +03:00
df59cffd43 Fix util::ecs::get(species) 2021-08-12 20:45:41 +03:00
66f733d937 Fix util::ecs::get_if 2021-07-25 13:00:26 +03:00
02b29af95a Introduce util::ecs::behavior::context 2021-07-24 11:14:43 +03:00
4f53537d27 Support non-default-constructible per-species component types in util::ecs 2021-07-23 23:28:44 +03:00
153e0f4230 Support retrieving species name in util::ecs 2021-07-23 10:14:11 +03:00
57fb1e8f1f Add non-throwing util::ecs::get_if 2021-07-22 10:51:32 +03:00
1bdef9134d Add util::ecs::species_count 2021-07-22 10:51:18 +03:00
f55fd29b58 Support entity removal & explicit traversal in util::ecs 2021-07-22 10:51:03 +03:00
37d1c3c3fd Add util::flat_list::data 2021-07-22 10:49:06 +03:00
4d7f7fa927 Rename ecs::behavior::{components -> component_types} 2021-07-21 22:47:32 +03:00
640bbf47c7 Add prototype ecs implementation with tests 2021-07-21 22:08:38 +03:00
fca22c93e2 Add util::type_name 2021-07-21 22:08:13 +03:00
c5802b2bbe Add util::span equality comparison 2021-07-21 22:00:47 +03:00
4b711fc1c4 Add util::span::empty 2021-07-14 17:04:00 +03:00
46d637328a Add util::any_hash 2021-07-13 11:43:03 +03:00
d9c454bc3b Support reading an array pointer in util::binary_stream 2021-07-13 11:42:46 +03:00
fc2b3bd7fd Add util::binary_stream::eof 2021-07-13 11:42:15 +03:00
e831eb8567 Support proper util::span move & copy assignment 2021-07-11 11:37:31 +03:00
b243639f8d Add util::log2 2021-07-07 18:58:13 +03:00
a93715e16e Add utility header for bit manipulation functions 2021-07-06 22:00:57 +03:00
31c27ccfd3 Support adding externally-measured profiling data to util::profiler 2021-06-04 18:01:32 +03:00
375732609b Use high_resolution_clock in util::profiler 2021-06-04 18:01:04 +03:00
2ee35266a6 Use __PRETTY_FUNCTION__ in profile_function macro 2021-06-04 14:30:24 +03:00
f1d995340b Add some type list machinery 2021-05-07 17:38:36 +03:00
1c4fbb1618 Make heterogeneous_container::get return pointers instead of copies 2021-05-07 17:35:11 +03:00
497b90ee7a Fix flat_list::clear for trivially destructible types 2021-04-27 23:12:36 +03:00
f9894647e3 Better 64-bit hash_combine 2021-04-25 22:08:42 +03:00
2eab5b7b9a Add memory size pretty printing 2021-03-13 18:46:09 +03:00