/***************************************************************************
*                                                                          *
*  Copyright (C) Golaem S.A.  All Rights Reserved.                         *
*                                                                          *
****************************************************************************/

#pragma once

#include "glmRTTI.h"

#include "glmAssetGroupV2.h" //contains AssetUnitV2
#include "glmClothAsset.h"
#include "glmFurAsset.h"

#include <glmGolaemCharacterDeclarations.h> // GolaemCharacter declarations

namespace glm
{
    struct MeshAssetV5;

    /**
    * \brief Mesh Asset
    */
    struct GLM_CORE_API MeshAssetV6
    {
        GLM_RTTI("3a868aee-eea0-41d2-95b8-d02a465fd7a9", MeshAssetV6, addAttributes)
    public:
        GLM_CLASS_STAT_ID( glm::MemoryStatIds::GolaemShared);

        /// The name of the mesh
        glm::GlmString _name;
        glm::GlmString _exportAlias;

        glm::PODArray<int> _shadingGroups;

        glm::Array<AssetUnitV2> _excludedAssets;

        ClothAssetV0 _clothAsset;

        FurAssetV0 _furAsset;

        struct IsFurStatus
        {
            enum Value
            {
                IS_FUR,
                NOT_FUR,
                END //default status, used when the fur state has not be computed yet
            };
        };
        mutable IsFurStatus::Value _isFur;

        // deep group
        glm::GlmString _deepMeshConfFile;
        glm::GlmString _deepMeshName;
        glm::GlmString _deepMeshExportAlias;

        MeshAssetV6();
        MeshAssetV6(const MeshAssetV5& source);

    protected:
        /**
        * \brief Inspection needed method declaring the inspectable attributes.
        */
        static void addAttributes();
    };
} // namespace glm
