This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,37 @@
using System;
namespace Kreta.Framework.Entities
{
/// <summary>
/// Az attribútum egy adott entitáshoz tartozó esemény kezelő osztályt azonosít.
/// </summary>
/// <remarks>
/// Az attribútumot olyan osztályra kell tenni, amely megvalósítja az
/// <see cref="IEntityHandler"/> felületet.
/// </remarks>
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class EntityHandlerAttribute : Attribute
{
private string m_EntityName;
/// <summary>
/// Az attribútum konstruktora.
/// </summary>
/// <param name="entityName">Az entitás neve, amihez a kezelő tartozik</param>
public EntityHandlerAttribute(string entityName)
{
m_EntityName = entityName;
}
/// <summary>
/// Az entitás neve, amihez a kezelő tartozik.
/// </summary>
public string EntityName
{
get
{
return m_EntityName;
}
}
}
}