From 9da88854ba3cc4361f6559bee0dd5a4726c420a3 Mon Sep 17 00:00:00 2001 From: mischa Date: Fri, 23 Jun 2023 11:03:13 +0800 Subject: [PATCH] scan nested types --- Assets/Mirror/Editor/Weaver/Weaver.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/Mirror/Editor/Weaver/Weaver.cs b/Assets/Mirror/Editor/Weaver/Weaver.cs index acb88273d..3c7d15db7 100644 --- a/Assets/Mirror/Editor/Weaver/Weaver.cs +++ b/Assets/Mirror/Editor/Weaver/Weaver.cs @@ -121,12 +121,19 @@ bool WeaveModule(ModuleDefinition moduleDefinition) foreach (TypeDefinition td in moduleDefinition.Types) { + // weave base type: Log.Warning($"WEAVER CONSIDERING: {td.FullName}"); if (td.IsClass && td.BaseType.CanBeResolved()) { modified |= WeaveNetworkBehavior(td); modified |= ServerClientAttributeProcessor.Process(weaverTypes, Log, td, ref WeavingFailed); } + + // TODO weave nested types recursively + foreach (TypeDefinition nestedTd in td.NestedTypes) + { + Log.Warning($" NESTED: {nestedTd.FullName}"); + } } watch.Stop();