Initial level management works and can go down levels but need to rework the ecs a bit to have the concept of 'constant' information and make copying it easy.
This commit is contained in:
parent
58fae858ff
commit
2735a0ac1f
3 changed files with 14 additions and 6 deletions
10
dinkyecs.hpp
10
dinkyecs.hpp
|
@ -29,10 +29,20 @@ namespace DinkyECS {
|
|||
std::unordered_map<std::type_index, EntityMap> $components;
|
||||
std::unordered_map<std::type_index, std::any> $facts;
|
||||
std::unordered_map<std::type_index, EventQueue> $events;
|
||||
std::vector<Entity> constants;
|
||||
|
||||
Entity entity() {
|
||||
return ++entity_count;
|
||||
}
|
||||
/*
|
||||
void clone_into(DinkyECS::World &from_world, DinkyECS::World &to_world) {
|
||||
|
||||
}
|
||||
|
||||
void update_constants(DinkyECS::World &from_world, DinkyECS::World &to_world) {
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
template <typename Comp>
|
||||
EntityMap& entity_map_for() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue