Big refactor, shuffling a lot of files around

This commit is contained in:
2025-11-01 19:51:19 -04:00
parent 99b7d9f49d
commit 62cd94ca78
125 changed files with 4073 additions and 3011 deletions
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <map>
namespace anm2ed::util::map
{
template <typename T> int next_id_get(std::map<int, T>& map)
{
int id = 0;
for (auto& [key, value] : map)
{
if (key != id) break;
++id;
}
return id;
}
template <typename T0, typename T1> T1* find(std::map<T0, T1>& map, T0 index)
{
return map.contains(index) ? &map[index] : nullptr;
}
}