Simplify attribute namespace

This commit is contained in:
Paul Pacheco 2020-09-21 16:58:08 -05:00
parent ca418457e8
commit 76ce3796eb

View File

@ -64,13 +64,13 @@ public static bool HasServerClientAttribute(MethodDefinition md)
public static bool ProcessMethodAttributes(TypeDefinition td, MethodDefinition md)
{
if (md.HasCustomAttribute<Mirror.ServerAttribute>())
if (md.HasCustomAttribute<ServerAttribute>())
InjectServerGuard(md, true);
else if (md.HasCustomAttribute<Mirror.ServerCallbackAttribute>())
else if (md.HasCustomAttribute<ServerCallbackAttribute>())
InjectServerGuard(md, false);
else if (md.HasCustomAttribute<Mirror.ClientAttribute>())
else if (md.HasCustomAttribute<ClientAttribute>())
InjectClientGuard(md, true);
else if (md.HasCustomAttribute<Mirror.ClientCallbackAttribute>())
else if (md.HasCustomAttribute<ClientCallbackAttribute>())
InjectClientGuard(md, false);
else
return false;