@@ -88,7 +88,7 @@ public class NetworkVariableTests : BaseMultiInstanceTest
88
88
private const string k_FixedStringTestValue = "abcdefghijklmnopqrstuvwxyz" ;
89
89
protected override int NbClients => 2 ;
90
90
91
- private const uint k_TestUInt = 0x12345678 ;
91
+ public const uint TestUInt = 0x12345678 ;
92
92
93
93
private const int k_TestVal1 = 111 ;
94
94
private const int k_TestVal2 = 222 ;
@@ -391,7 +391,7 @@ bool VerifyStructure()
391
391
m_Player1OnClient1 . TheStruct . Value . SomeInt == m_Player1OnServer . TheStruct . Value . SomeInt ;
392
392
}
393
393
394
- m_Player1OnServer . TheStruct . Value = new TestStruct ( ) { SomeInt = k_TestUInt , SomeBool = false } ;
394
+ m_Player1OnServer . TheStruct . Value = new TestStruct ( ) { SomeInt = TestUInt , SomeBool = false } ;
395
395
m_Player1OnServer . TheStruct . SetDirty ( true ) ;
396
396
397
397
// Wait for the client-side to notify it is finished initializing and spawning.
@@ -404,7 +404,7 @@ public IEnumerator TestINetworkSerializableCallsNetworkSerialize([Values(true, f
404
404
yield return InitializeServerAndClients ( useHost ) ;
405
405
TestStruct . NetworkSerializeCalledOnWrite = false ;
406
406
TestStruct . NetworkSerializeCalledOnRead = false ;
407
- m_Player1OnServer . TheStruct . Value = new TestStruct ( ) { SomeInt = k_TestUInt , SomeBool = false } ;
407
+ m_Player1OnServer . TheStruct . Value = new TestStruct ( ) { SomeInt = TestUInt , SomeBool = false } ;
408
408
409
409
bool VerifyCallback ( )
410
410
{
@@ -630,16 +630,14 @@ public NetworkListTestPredicate(NetworkVariableTest player1OnServer, NetworkVari
630
630
}
631
631
632
632
[ UnityTest ]
633
- public IEnumerator TestListOfINetworkSerializableCallsNetworkSerialize ( [ Values ( true , false ) ] bool useHost )
633
+ public IEnumerator TestListOfINetworkSerializableCallsNetworkSerialize ( )
634
634
{
635
- m_TestWithHost = useHost ;
636
635
yield return MultiInstanceHelpers . RunAndWaitForCondition (
637
636
( ) =>
638
637
{
639
638
TestStruct . NetworkSerializeCalledOnWrite = false ;
640
639
TestStruct . NetworkSerializeCalledOnRead = false ;
641
- m_Player1OnServer . TheListOfStructs . Add (
642
- new TestStruct ( ) { SomeInt = k_TestUInt , SomeBool = false } ) ;
640
+ m_Player1OnServer . TheListOfStructs . Add ( new TestStruct ( ) { SomeInt = NetworkVariableTests . TestUInt , SomeBool = false } ) ;
643
641
m_Player1OnServer . TheListOfStructs . SetDirty ( true ) ;
644
642
} ,
645
643
( ) =>
0 commit comments