refactor: remove unnecessary classes

This commit is contained in:
k0t9i
2023-10-16 00:03:43 +04:00
parent a7a9b626f4
commit 787f4969ed
57 changed files with 1651 additions and 1600 deletions

View File

@@ -0,0 +1,14 @@
#include "..\..\pch.h"
#include "HashCombiner.h"
namespace L2Bot::Domain::Helpers
{
const size_t CombineHashes(const std::vector<size_t> hashes, size_t seed)
{
for (const auto hash : hashes) {
seed = hash + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
return seed;
}
}

View File

@@ -0,0 +1,9 @@
#pragma once
#include <vector>
namespace L2Bot::Domain::Helpers
{
const size_t CombineHashes(const std::vector<size_t> hashes, size_t seed = 0);
}