20 lines
467 B
C#
20 lines
467 B
C#
namespace Syntriax.Engine.Core.Abstract;
|
|
|
|
/// <summary>
|
|
/// Represents an entity with a name.
|
|
/// </summary>
|
|
public interface INameable
|
|
{
|
|
/// <summary>
|
|
/// Event triggered when the name of the entity changes.
|
|
/// </summary>
|
|
event OnNameChangedDelegate? OnNameChanged;
|
|
|
|
/// <summary>
|
|
/// The name of the entity.
|
|
/// </summary>
|
|
string Name { get; set; }
|
|
|
|
delegate void OnNameChangedDelegate(INameable sender, string previousName);
|
|
}
|