about summary refs log tree commit diff
path: root/LibMatrix/EventTypes/MatrixEventAttribute.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-06 18:29:15 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-06 18:29:15 +0200
commite5591eef3850a9796cc87386128651a828b70697 (patch)
tree7e501ec749229a3d96838265289266bb6f6ce208 /LibMatrix/EventTypes/MatrixEventAttribute.cs
parentUnit tests, small refactors (diff)
downloadLibMatrix-e5591eef3850a9796cc87386128651a828b70697.tar.xz
Small refactors
Diffstat (limited to 'LibMatrix/EventTypes/MatrixEventAttribute.cs')
-rw-r--r--LibMatrix/EventTypes/MatrixEventAttribute.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/LibMatrix/EventTypes/MatrixEventAttribute.cs b/LibMatrix/EventTypes/MatrixEventAttribute.cs
new file mode 100644
index 0000000..92334d0
--- /dev/null
+++ b/LibMatrix/EventTypes/MatrixEventAttribute.cs
@@ -0,0 +1,7 @@
+namespace LibMatrix.EventTypes;
+
+[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
+public class MatrixEventAttribute : Attribute {
+    public string EventName { get; set; }
+    public bool Legacy { get; set; }
+}