Add sequence numbers to server broadcasts and client state handling for out-of-order update detection.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 9m53s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 9m53s
This commit is contained in:
@@ -113,6 +113,7 @@ type GameState struct {
|
||||
CollectedCoins map[string]bool `json:"collected_coins"` // Welche Coins wurden eingesammelt (Key: ChunkID_ObjectIndex)
|
||||
CollectedPowerups map[string]bool `json:"collected_powerups"` // Welche Powerups wurden eingesammelt
|
||||
MovingPlatforms []MovingPlatformSync `json:"moving_platforms"` // Bewegende Plattformen
|
||||
Sequence uint32 `json:"sequence"` // Sequenznummer für Out-of-Order-Erkennung
|
||||
}
|
||||
|
||||
// MovingPlatformSync: Synchronisiert die Position einer bewegenden Plattform
|
||||
|
||||
Reference in New Issue
Block a user