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

#pragma once

#include "glmRTTI.h"

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

namespace glm
{
    struct MeshAssetV4;

    /**
    * \brief Mesh Asset
    */
    struct GLM_CORE_API MeshAssetV5
    {
        GLM_RTTI("291a9942-ae24-464a-819c-2d5dbfb12f69", MeshAssetV5, 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;

		MeshAssetV5();
		MeshAssetV5(const MeshAssetV4& source);

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