mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
rename and clarify
This commit is contained in:
parent
8db0f34f2c
commit
98737b8863
@ -13,17 +13,17 @@ public static class ReaderWriterProcessor
|
||||
{
|
||||
public static bool Process(AssemblyDefinition CurrentAssembly, Writers writers, Readers readers, ref bool WeavingFailed)
|
||||
{
|
||||
// find readers/writers from Mirror.dll first
|
||||
// which are the ones in NetworkReader/WriterExtensions class.
|
||||
// find NetworkReader/Writer extensions from Mirror.dll first.
|
||||
// and NetworkMessage custom writer/reader extensions.
|
||||
// NOTE: do not include this result in our 'modified' return value,
|
||||
// otherwise Unity crashes when running tests
|
||||
ProcessMirrorAssemblyReaderWriterExtensions(CurrentAssembly, writers, readers, ref WeavingFailed);
|
||||
ProcessMirrorAssemblyClasses(CurrentAssembly, writers, readers, ref WeavingFailed);
|
||||
|
||||
// find readers/writers in the assembly we are in right now.
|
||||
return ProcessAssemblyClasses(CurrentAssembly, CurrentAssembly, writers, readers, ref WeavingFailed);
|
||||
}
|
||||
|
||||
static void ProcessMirrorAssemblyReaderWriterExtensions(AssemblyDefinition CurrentAssembly, Writers writers, Readers readers, ref bool WeavingFailed)
|
||||
static void ProcessMirrorAssemblyClasses(AssemblyDefinition CurrentAssembly, Writers writers, Readers readers, ref bool WeavingFailed)
|
||||
{
|
||||
// we search all assemblies to find Mirror.dll.
|
||||
// then find all NetworkReader/WriterExtensions.
|
||||
|
Loading…
Reference in New Issue
Block a user