Skip to content

Commit e7a2a89

Browse files
committed
undo snapshot extension
1 parent 0dff2eb commit e7a2a89

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Backdash/Session/INetcodeSession.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public interface INetcodeSessionInfo
8888
/// Returns the size of the current saved state.
8989
/// </summary>
9090
ByteSize CurrentStateSize => GetCurrentSavedFrame().Size;
91+
92+
/// <summary>
93+
/// Returns the last saved state snapshot.
94+
/// </summary>
95+
StateSnapshot CurrentStateSnapshot() => GetCurrentSavedFrame().ToSnapshot();
9196
}
9297

9398
/// <summary>

src/Backdash/Session/NetcodeSessionExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,4 @@ static string GetStateString<T>(
4848
var stateObject = @this.GetHandler().CreateState(frame, ref reader);
4949
return parser.GetStateString(frame, in reader, stateObject);
5050
}
51-
52-
/// <summary>
53-
/// Returns the last saved state snapshot.
54-
/// </summary>
55-
public static StateSnapshot CurrentStateSnapshot<T>(this INetcodeSession<T> @this) where T : unmanaged =>
56-
@this.GetCurrentSavedFrame().ToSnapshot();
5751
}

0 commit comments

Comments
 (0)