Define wrap-safe snapshot sequencing

This commit is contained in:
Nomads_Reach
2026-08-16 00:06:06 -04:00
parent 840445075d
commit ca962e4511
4 changed files with 123 additions and 1 deletions
+10
View File
@@ -26,3 +26,13 @@ def delivery_for_packet_type(packet_type: str) -> Delivery:
def is_snapshot_packet(packet_type: str) -> bool:
return delivery_for_packet_type(packet_type) is Delivery.UNRELIABLE_SEQUENCED
def requires_application_sequence(packet_type: str) -> bool:
"""Return whether the protocol must reject stale copies after reordering.
GameNetworkingSockets can deliver unreliable messages without retransmit,
but the application still owns latest-wins snapshot semantics. Sequence
numbers are therefore required for every unreliable snapshot family.
"""
return is_snapshot_packet(packet_type)