Files
o3de/Code/Framework/AzToolsFramework/AzToolsFramework/Undo/UndoCacheInterface.h
T
Jeremy Ong 07a14bdce1 Add AZ_BUDGET_DEFINE/AZ_BUDGET_DECLARE and remove driller
NOTE: The memory driller is still intact for now to avoid needing to
modify allocators, but the frame/cpu portions of driller and the
standalone executable are now gone.

Signed-off-by: Jeremy Ong <jcong@amazon.com>
2021-08-24 15:07:27 -06:00

42 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/Entity.h>
#include <AzCore/Debug/Budget.h>
#include <AzCore/Interface/Interface.h>
AZ_DECLARE_BUDGET(AzToolsFramework);
namespace AzToolsFramework
{
namespace UndoSystem
{
class UndoCacheInterface
{
public:
AZ_RTTI(UndoCacheInterface, "{CC1E4411-A045-4906-AD39-2E0445B5EADA}");
//! Store the new entity state or replace the old state.
virtual void UpdateCache(const AZ::EntityId& entityId) = 0;
//! Remove the cache line for the entity, if there is one.
virtual void PurgeCache(const AZ::EntityId& entityId) = 0;
//! Clear the entire cache.
virtual void Clear() = 0;
//! Verify if any changes to the entity was not correctly notified.
virtual void Validate(const AZ::EntityId& entityId) = 0;
};
} // namespace UndoSystem
} // namespace AzToolsFramework