Content packs indices auto build + WorldGenerator fix

This commit is contained in:
MihailRis
2023-12-29 14:17:26 +03:00
parent d2a40d31a4
commit 76aeb8e4df
8 changed files with 90 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef UTIL_LISTUTIL_H_
#define UTIL_LISTUTIL_H_
#include <vector>
namespace util {
template<class T>
bool contains(std::vector<T> vec, const T& value) {
return std::find(vec.begin(), vec.end(), value) != vec.end();
}
}
#endif // UTIL_LISTUTIL_H_