Minor tweaks on the general codebase

This commit is contained in:
2026-01-06 04:10:58 +02:00
parent 31ebef777b
commit 88f5d02b6a
2 changed files with 2 additions and 5 deletions

View File

@@ -49,7 +49,6 @@ public:
// Components
template <Component T, typename... Args>
T &AddComponent(const Entity &entity, Args &&...constructionArguments) {
// Insert to entity list
auto entityIter = GetEntityIterator(
entity,
std::format(

View File

@@ -41,10 +41,8 @@ namespace std {
template <> struct hash<Tourmaline::Type::UUID> {
size_t operator()(const Tourmaline::Type::UUID &uuid) const noexcept {
const auto data = uuid.data.get();
size_t h1 = std::hash<uint64_t>{}(data[0]);
size_t h2 = std::hash<uint64_t>{}(data[1]);
// Combine the two hashes
size_t h1 = std::hash<uint64_t>{}(data[0]),
h2 = std::hash<uint64_t>{}(data[1]);
return h1 ^ (h2 << 1);
}
};