Ejemplo n.º 1
0
 public bool Read(out PlayerInputSequenceNumber value)
 {
     if (_reader.TryGetUInt(out var innerValue))
     {
         value = new PlayerInputSequenceNumber(innerValue);
         return(true);
     }
     value = default;
     return(false);
 }
Ejemplo n.º 2
0
 private static void CreateNewSnapshotData(
     SnapshotStore <InputSnapshotsComponent.InputCommandSet> snapshotStore,
     SimulationTickNumber simulationTickNumber,
     PlayerInputSequenceNumber nextPlayerInputSequenceNumber)
 {
     ref var inputSet = ref snapshotStore.GetOrCreate(simulationTickNumber, out bool wasCreated);