mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-25 06:20:14 +00:00
Get rid of unnecessary templating
This commit is contained in:
parent
bfa3a8c04e
commit
02a5632147
@ -140,14 +140,13 @@ static void bufferAppearanceData(std::vector<std::vector<T>>& slices, const T& d
|
|||||||
slices.push_back(std::vector<T>());
|
slices.push_back(std::vector<T>());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
static void bufferIdForDisappearance(std::vector<std::vector<int32_t>>& slices, int32_t id, size_t maxCnt) {
|
||||||
static void bufferIdForDisappearance(std::vector<std::vector<T>>& slices, int32_t id, size_t maxCnt) {
|
|
||||||
if (slices.empty())
|
if (slices.empty())
|
||||||
slices.push_back(std::vector<T>());
|
slices.push_back(std::vector<int32_t>());
|
||||||
std::vector<T>& slice = slices[slices.size() - 1];
|
std::vector<int32_t>& slice = slices[slices.size() - 1];
|
||||||
slice.push_back(id);
|
slice.push_back(id);
|
||||||
if (slice.size() == maxCnt)
|
if (slice.size() == maxCnt)
|
||||||
slices.push_back(std::vector<T>());
|
slices.push_back(std::vector<int32_t>());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Chunking::addEntityToChunks(std::set<Chunk*> chnks, const EntityRef ref) {
|
void Chunking::addEntityToChunks(std::set<Chunk*> chnks, const EntityRef ref) {
|
||||||
|
Loading…
Reference in New Issue
Block a user