From 2f8125ef70254ca46965b5ac2ac4d227f4fed14b Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 2 Jan 2019 17:17:14 +0100 Subject: [PATCH] Better name --- Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs b/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs index 89bc94d29..54f029608 100644 --- a/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs +++ b/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs @@ -144,19 +144,19 @@ public static bool WriteArguments(ILProcessor worker, MethodDefinition md, strin } // mark / check type as processed ////////////////////////////////////// - const string MirrorProcessedFunction = "MirrorProcessed"; + public const string ProcessedFunctionName = "MirrorProcessed"; // by adding an empty MirrorProcessed() function public static bool WasProcessed(TypeDefinition td) { - return td.Methods.Any(method => method.Name == MirrorProcessedFunction); + return td.Methods.Any(method => method.Name == ProcessedFunctionName); } public static void MarkAsProcessed(TypeDefinition td) { if (!WasProcessed(td)) { - MethodDefinition versionMethod = new MethodDefinition(MirrorProcessedFunction, MethodAttributes.Private, Weaver.voidType); + MethodDefinition versionMethod = new MethodDefinition(ProcessedFunctionName, MethodAttributes.Private, Weaver.voidType); ILProcessor worker = versionMethod.Body.GetILProcessor(); worker.Append(worker.Create(OpCodes.Ret)); td.Methods.Add(versionMethod);