You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <AzCore/Component/EntityId.h>
|
|
#include <AzFramework/Terrain/TerrainDataRequestBus.h>
|
|
#include <Terrain/Ebuses/TerrainAreaSurfaceRequestBus.h>
|
|
|
|
namespace UnitTest
|
|
{
|
|
class MockTerrainAreaSurfaceRequestBus : public Terrain::TerrainAreaSurfaceRequestBus::Handler
|
|
{
|
|
public:
|
|
MockTerrainAreaSurfaceRequestBus(AZ::EntityId entityId)
|
|
{
|
|
Terrain::TerrainAreaSurfaceRequestBus::Handler::BusConnect(entityId);
|
|
}
|
|
|
|
~MockTerrainAreaSurfaceRequestBus()
|
|
{
|
|
Terrain::TerrainAreaSurfaceRequestBus::Handler::BusDisconnect();
|
|
}
|
|
|
|
MOCK_METHOD0(Activate, void());
|
|
MOCK_METHOD0(Deactivate, void());
|
|
MOCK_CONST_METHOD2(GetSurfaceWeights, void(const AZ::Vector3&, AzFramework::SurfaceData::OrderedSurfaceTagWeightSet&));
|
|
};
|
|
|
|
} // namespace UnitTest
|