refactor: rename SyncListProcessor -> SyncListInitializer

SyncListProcessor is a very confusing name,  it does not process synclists at all,  instead it initializes synclists in the network behaviour.
This is more confusing especially since SyncListStructProcessor  does process the synclists to add serialization methods, and both of them normally work
in tandem in different parts of the code
This commit is contained in:
Paul Pacheco 2019-03-19 08:15:23 -05:00
parent 8f8856d320
commit 6e51e69e3d
3 changed files with 3 additions and 3 deletions

View File

@ -262,7 +262,7 @@ void GenerateConstants()
foreach (FieldDefinition fd in m_SyncObjects)
{
SyncListProcessor.GenerateSyncListInstanceInitializer(ctorWorker, fd);
SyncListInitializer.GenerateSyncListInstanceInitializer(ctorWorker, fd);
SyncObjectProcessor.GenerateSyncObjectInitializer(ctorWorker, fd);
}

View File

@ -6,7 +6,7 @@
namespace Mirror.Weaver
{
public static class SyncListProcessor
public static class SyncListInitializer
{
// generates 'syncListInt = new SyncListInt()' if user didn't do that yet
public static void GenerateSyncListInstanceInitializer(ILProcessor ctorWorker, FieldDefinition fd)

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4f3445268e45d437fac325837aff3246
guid: 97068e5d8cc14490b85933feb119d827
MonoImporter:
externalObjects: {}
serializedVersion: 2