31 lines
835 B
C#
31 lines
835 B
C#
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
|
|
|
using System;
|
|
|
|
namespace FlaxEditor
|
|
{
|
|
/// <summary>
|
|
/// Interface for all objects that can be modified (dirty state) and expose some functionalities and events.
|
|
/// </summary>
|
|
public interface IEditable
|
|
{
|
|
/// <summary>
|
|
/// Occurs when object gets edited.
|
|
/// </summary>
|
|
event Action OnEdited;
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether this object is edited (dirty state).
|
|
/// </summary>
|
|
/// <value>
|
|
/// <c>true</c> if this object instance is edited; otherwise, <c>false</c>.
|
|
/// </value>
|
|
bool IsEdited { get; }
|
|
|
|
/// <summary>
|
|
/// Marks object as edited (sets dirty flag).
|
|
/// </summary>
|
|
void MarkAsEdited();
|
|
}
|
|
}
|