mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Simplify attribute namespace
This commit is contained in:
parent
ca418457e8
commit
76ce3796eb
@ -64,13 +64,13 @@ public static bool HasServerClientAttribute(MethodDefinition md)
|
|||||||
|
|
||||||
public static bool ProcessMethodAttributes(TypeDefinition td, MethodDefinition md)
|
public static bool ProcessMethodAttributes(TypeDefinition td, MethodDefinition md)
|
||||||
{
|
{
|
||||||
if (md.HasCustomAttribute<Mirror.ServerAttribute>())
|
if (md.HasCustomAttribute<ServerAttribute>())
|
||||||
InjectServerGuard(md, true);
|
InjectServerGuard(md, true);
|
||||||
else if (md.HasCustomAttribute<Mirror.ServerCallbackAttribute>())
|
else if (md.HasCustomAttribute<ServerCallbackAttribute>())
|
||||||
InjectServerGuard(md, false);
|
InjectServerGuard(md, false);
|
||||||
else if (md.HasCustomAttribute<Mirror.ClientAttribute>())
|
else if (md.HasCustomAttribute<ClientAttribute>())
|
||||||
InjectClientGuard(md, true);
|
InjectClientGuard(md, true);
|
||||||
else if (md.HasCustomAttribute<Mirror.ClientCallbackAttribute>())
|
else if (md.HasCustomAttribute<ClientCallbackAttribute>())
|
||||||
InjectClientGuard(md, false);
|
InjectClientGuard(md, false);
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user