aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Objects
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Objects')
-rw-r--r--ShiftOS.Objects/MudAttributes.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ShiftOS.Objects/MudAttributes.cs b/ShiftOS.Objects/MudAttributes.cs
index b3b7380..f944337 100644
--- a/ShiftOS.Objects/MudAttributes.cs
+++ b/ShiftOS.Objects/MudAttributes.cs
@@ -15,12 +15,14 @@ namespace ShiftOS.Objects
/// This attribute can be used on a static method to make the multi-user domain server software see this method as a MUD request handler.
/// </summary>
/// <param name="rName">The header ID of the request this method should handle.</param>
- public MudRequestAttribute(string rName)
+ public MudRequestAttribute(string rName, Type expected)
{
RequestName = rName;
+ ExpectedType = expected;
}
public string RequestName { get; private set; }
+ public Type ExpectedType { get; private set; }
}
[AttributeUsage(AttributeTargets.Method)]