diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests.cs index 010512f26..b996e133a 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests.cs @@ -86,7 +86,7 @@ public void SyncVarsSyncList() { Assert.That(CompilationFinishedHook.WeaveFailed, Is.False); Assert.That(weaverErrors, Is.Empty); - Assert.That(weaverWarnings, Contains.Item("Mirror.Weaver warning: MirrorTest.SyncObjImplementer MirrorTest.SyncVarsSyncList::syncobj has [SyncVar] attribute. SyncLists should not be marked with SyncVar")); + Assert.That(weaverWarnings, Contains.Item("Mirror.Weaver warning: MirrorTest.SyncVarsSyncList/SyncObjImplementer MirrorTest.SyncVarsSyncList::syncobj has [SyncVar] attribute. SyncLists should not be marked with SyncVar")); Assert.That(weaverWarnings, Contains.Item("Mirror.Weaver warning: Mirror.SyncListInt MirrorTest.SyncVarsSyncList::syncints has [SyncVar] attribute. SyncLists should not be marked with SyncVar")); } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests~/SyncVarsSyncList.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests~/SyncVarsSyncList.cs index e4f80865c..de087f91e 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests~/SyncVarsSyncList.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarTests~/SyncVarsSyncList.cs @@ -3,19 +3,20 @@ namespace MirrorTest { - public class SyncObjImplementer : SyncObject - { - public bool IsDirty { get; } - public void Flush() {} - public void OnSerializeAll(NetworkWriter writer) {} - public void OnSerializeDelta(NetworkWriter writer) {} - public void OnDeserializeAll(NetworkReader reader) {} - public void OnDeserializeDelta(NetworkReader reader) {} - public void Reset() {} - } class SyncVarsSyncList : NetworkBehaviour { + public class SyncObjImplementer : SyncObject + { + public bool IsDirty { get; } + public void Flush() { } + public void OnSerializeAll(NetworkWriter writer) { } + public void OnSerializeDelta(NetworkWriter writer) { } + public void OnDeserializeAll(NetworkReader reader) { } + public void OnDeserializeDelta(NetworkReader reader) { } + public void Reset() { } + } + [SyncVar(hook = nameof(OnChangeHealth))] int health;