mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
scan nested types
This commit is contained in:
parent
103acb1df0
commit
9da88854ba
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user