Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
404 B
Raw Blame
#ifndef OPENMW_COMPONENTS_ESM_DECOMPOSE_H
#define OPENMW_COMPONENTS_ESM_DECOMPOSE_H

namespace ESM
{
    template <class T>
    void decompose(T&& value, const auto& apply) = delete;

    std::size_t getCompositeSize(const auto& value)
    {
        std::size_t result = 0;
        decompose(value, [&](const auto&... args) { result = (0 + ... + sizeof(args)); });
        return result;
    }
}

#endif