@@ -31,10 +31,16 @@ public void GhostValuesAreSerialized_IComponentData()
3131 testWorld . SpawnOnServer ( ghostGameObject ) ;
3232 var serverEntity = testWorld . TryGetSingletonEntity < GhostGenTestUtils . GhostGenTestType_IComponentData > ( testWorld . ServerWorld ) ;
3333 Assert . AreNotEqual ( Entity . Null , serverEntity ) ;
34- var newClampValues = GhostGenTestUtils . CreateGhostValuesClamp_Values ( 42 , serverEntity ) ;
34+ var ( newClampValues , newClampValues2 ) = GhostGenTestUtils . CreateGhostValuesClamp_Values ( 42 , serverEntity ) ;
3535 var newClampStrings = GhostGenTestUtils . CreateGhostValuesClamp_Strings ( 42 ) ;
3636 var newInterpolateValues = GhostGenTestUtils . CreateGhostValuesInterpolate ( 42 ) ;
37- testWorld . ServerWorld . EntityManager . SetComponentData ( serverEntity , new GhostGenTestUtils . GhostGenTestType_IComponentData { GhostGenTypesClamp_Values = newClampValues , GhostGenTypesClamp_Strings = newClampStrings , GhostGenTypesInterpolate = newInterpolateValues } ) ;
37+ testWorld . ServerWorld . EntityManager . SetComponentData ( serverEntity , new GhostGenTestUtils . GhostGenTestType_IComponentData
38+ {
39+ GhostGenTypesClamp_Values = newClampValues ,
40+ GhostGenTypesClamp_Values2 = newClampValues2 ,
41+ GhostGenTypesClamp_Strings = newClampStrings ,
42+ GhostGenTypesInterpolate = newInterpolateValues
43+ } ) ;
3844
3945 // Connect and make sure the connection could be established
4046 testWorld . Connect ( ) ;
@@ -52,14 +58,20 @@ public void GhostValuesAreSerialized_IComponentData()
5258 var serverValues = testWorld . ServerWorld . EntityManager . GetComponentData < GhostGenTestUtils . GhostGenTestType_IComponentData > ( serverEntity ) ;
5359 var clientValues = testWorld . ClientWorlds [ 0 ] . EntityManager . GetComponentData < GhostGenTestUtils . GhostGenTestType_IComponentData > ( clientEntity ) ;
5460
55- GhostGenTestUtils . VerifyGhostValuesClamp_Values ( false , serverValues . GhostGenTypesClamp_Values , clientValues . GhostGenTypesClamp_Values , serverEntity , clientEntity ) ;
61+ GhostGenTestUtils . VerifyGhostValuesClamp_Values ( false , serverValues . GhostGenTypesClamp_Values , clientValues . GhostGenTypesClamp_Values , serverValues . GhostGenTypesClamp_Values2 , clientValues . GhostGenTypesClamp_Values2 , serverEntity , clientEntity ) ;
5662 GhostGenTestUtils . VerifyGhostValuesClamp_Strings ( serverValues . GhostGenTypesClamp_Strings , clientValues . GhostGenTypesClamp_Strings ) ;
5763 GhostGenTestUtils . VerifyGhostValuesInterpolate ( serverValues . GhostGenTypesInterpolate , clientValues . GhostGenTypesInterpolate ) ;
5864
59- newClampValues = GhostGenTestUtils . CreateGhostValuesClamp_Values ( 43 , serverEntity ) ;
65+ ( newClampValues , newClampValues2 ) = GhostGenTestUtils . CreateGhostValuesClamp_Values ( 43 , serverEntity ) ;
6066 newClampStrings = GhostGenTestUtils . CreateGhostValuesClamp_Strings ( 43 ) ;
6167 newInterpolateValues = GhostGenTestUtils . CreateGhostValuesInterpolate ( 43 ) ;
62- testWorld . ServerWorld . EntityManager . SetComponentData ( serverEntity , new GhostGenTestUtils . GhostGenTestType_IComponentData { GhostGenTypesClamp_Values = newClampValues , GhostGenTypesClamp_Strings = newClampStrings , GhostGenTypesInterpolate = newInterpolateValues } ) ;
68+ testWorld . ServerWorld . EntityManager . SetComponentData ( serverEntity , new GhostGenTestUtils . GhostGenTestType_IComponentData
69+ {
70+ GhostGenTypesClamp_Values = newClampValues ,
71+ GhostGenTypesClamp_Values2 = newClampValues2 ,
72+ GhostGenTypesClamp_Strings = newClampStrings ,
73+ GhostGenTypesInterpolate = newInterpolateValues
74+ } ) ;
6375
6476 for ( int i = 0 ; i < 64 ; ++ i )
6577 testWorld . Tick ( ) ;
@@ -68,7 +80,7 @@ public void GhostValuesAreSerialized_IComponentData()
6880 serverValues = testWorld . ServerWorld . EntityManager . GetComponentData < GhostGenTestUtils . GhostGenTestType_IComponentData > ( serverEntity ) ;
6981 clientValues = testWorld . ClientWorlds [ 0 ] . EntityManager . GetComponentData < GhostGenTestUtils . GhostGenTestType_IComponentData > ( clientEntity ) ;
7082
71- GhostGenTestUtils . VerifyGhostValuesClamp_Values ( false , serverValues . GhostGenTypesClamp_Values , clientValues . GhostGenTypesClamp_Values , serverEntity , clientEntity ) ;
83+ GhostGenTestUtils . VerifyGhostValuesClamp_Values ( false , serverValues . GhostGenTypesClamp_Values , clientValues . GhostGenTypesClamp_Values , serverValues . GhostGenTypesClamp_Values2 , clientValues . GhostGenTypesClamp_Values2 , serverEntity , clientEntity ) ;
7284 GhostGenTestUtils . VerifyGhostValuesClamp_Strings ( serverValues . GhostGenTypesClamp_Strings , clientValues . GhostGenTypesClamp_Strings ) ;
7385 GhostGenTestUtils . VerifyGhostValuesInterpolate ( serverValues . GhostGenTypesInterpolate , clientValues . GhostGenTypesInterpolate ) ;
7486 }
0 commit comments