mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Content packs indices auto build + WorldGenerator fix
This commit is contained in:
parent
d2a40d31a4
commit
76aeb8e4df
8 changed files with 90 additions and 6 deletions
13
src/util/listutil.h
Normal file
13
src/util/listutil.h
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue