// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEditor
{
///
/// Interface for all objects that can be modified (dirty state) and expose some functionalities and events.
///
public interface IEditable
{
///
/// Occurs when object gets edited.
///
event Action OnEdited;
///
/// Gets a value indicating whether this object is edited (dirty state).
///
bool IsEdited { get; }
///
/// Marks object as edited (sets dirty flag).
///
void MarkAsEdited();
}
}