// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include namespace Nz { namespace Detail { inline std::size_t ResourceTypeIndexCounter() { static std::size_t counter = 0; return counter++; } } template std::size_t ResourceRegistry::GetResourceId() { static std::size_t typeId = Detail::ResourceTypeIndexCounter(); return typeId; } } #include