mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
25 lines
520 B
C#
25 lines
520 B
C#
using System;
|
|
|
|
namespace MonoGame.Extended.Entities
|
|
{
|
|
public enum AspectType
|
|
{
|
|
All,
|
|
None,
|
|
Any
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
|
|
public class AspectAttribute : Attribute
|
|
{
|
|
public AspectType Type { get; }
|
|
public Type[] Components { get; }
|
|
|
|
public AspectAttribute(AspectType type, params Type[] components)
|
|
{
|
|
Type = type;
|
|
Components = components;
|
|
}
|
|
}
|
|
}
|