@@ -57,13 +57,13 @@ sealed class PlayerInputState
5757 Task backGroundJobTask = Task . CompletedTask ;
5858 Frame lastVerified = Frame . Zero ;
5959
60- public int FixedFrameRate { get ; }
61-
6260 readonly IReadOnlySet < NetcodePlayer > localPlayerFallback = new HashSet < NetcodePlayer >
6361 {
6462 new ( 0 , PlayerType . Local ) ,
6563 } . ToFrozenSet ( ) ;
6664
65+ readonly NetcodeOptions options ;
66+
6767 public SyncTestSession (
6868 SyncTestOptions < TInput > syncTestOptions ,
6969 NetcodeOptions options ,
@@ -75,7 +75,7 @@ SessionServices<TInput> services
7575 ArgumentNullException . ThrowIfNull ( syncTestOptions ) ;
7676 ArgumentOutOfRangeException . ThrowIfNegativeOrZero ( syncTestOptions . CheckDistanceFrames ) ;
7777
78- FixedFrameRate = options . FrameRate ;
78+ this . options = options ;
7979 checkDistance = new ( syncTestOptions . CheckDistanceFrames ) ;
8080 logStateOnDesync = syncTestOptions . LogStateOnDesync ;
8181 throwError = syncTestOptions . ThrowOnDesync ;
@@ -101,7 +101,7 @@ SessionServices<TInput> services
101101 Callbacks = callbacks ,
102102 } ;
103103
104- endianness = options . GetEndiannessNumberStateSerializer ( ) ;
104+ endianness = synchronizer . NumberSerializer ;
105105 }
106106
107107 public void Dispose ( ) => tsc . SetResult ( ) ;
@@ -120,7 +120,9 @@ public async ValueTask DisposeAsync()
120120 public SessionMode Mode => SessionMode . SyncTest ;
121121 public FrameSpan FramesBehind => synchronizer . FramesBehind ;
122122 public FrameSpan RollbackFrames => synchronizer . RollbackFrames ;
123-
123+ public int FixedFrameRate => options . FrameRate ;
124+ public Endianness StateSerializationEndianness => endianness . Endianness ;
125+ public Endianness InputSerializationEndianness => options . Protocol . SerializationEndianness ;
124126 public ReadOnlySpan < SynchronizedInput < TInput > > CurrentSynchronizedInputs => syncInputBuffer ;
125127
126128 public ReadOnlySpan < TInput > CurrentInputs => inputBuffer ;
0 commit comments