mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
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:
parent
8f8856d320
commit
6e51e69e3d
@ -262,7 +262,7 @@ void GenerateConstants()
|
||||
|
||||
foreach (FieldDefinition fd in m_SyncObjects)
|
||||
{
|
||||
SyncListProcessor.GenerateSyncListInstanceInitializer(ctorWorker, fd);
|
||||
SyncListInitializer.GenerateSyncListInstanceInitializer(ctorWorker, fd);
|
||||
SyncObjectProcessor.GenerateSyncObjectInitializer(ctorWorker, fd);
|
||||
}
|
||||
|
||||
|
@ -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)
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f3445268e45d437fac325837aff3246
|
||||
guid: 97068e5d8cc14490b85933feb119d827
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
Loading…
Reference in New Issue
Block a user