diff options
author | Rory& <root@rory.gay> | 2024-05-30 09:31:29 +0000 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-05-30 09:31:29 +0000 |
commit | 08f5483df2c01eba7c764cdaec94fca71e4976b8 (patch) | |
tree | 1e521bf7bae7bdf07fa8e87505b2fa95d21a196e /LibMatrix.LegacyEvents.EventTypes/MatrixEventAttribute.cs | |
parent | Rename StateEvent to LegacyMatrixEvent (diff) | |
download | LibMatrix-08f5483df2c01eba7c764cdaec94fca71e4976b8.tar.xz |
Clarify LegacyEvent types
Diffstat (limited to 'LibMatrix.LegacyEvents.EventTypes/MatrixEventAttribute.cs')
-rw-r--r-- | LibMatrix.LegacyEvents.EventTypes/MatrixEventAttribute.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/LibMatrix.LegacyEvents.EventTypes/MatrixEventAttribute.cs b/LibMatrix.LegacyEvents.EventTypes/MatrixEventAttribute.cs new file mode 100644 index 0000000..708dad1 --- /dev/null +++ b/LibMatrix.LegacyEvents.EventTypes/MatrixEventAttribute.cs @@ -0,0 +1,7 @@ +namespace LibMatrix.LegacyEvents.EventTypes; + +[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] +public class MatrixEventAttribute : Attribute { + public required string EventName { get; set; } + public bool Legacy { get; set; } +} \ No newline at end of file |