Enforce cumulative per-tick movement budget on server

This commit is contained in:
Jage9
2026-02-24 20:15:24 -05:00
parent 3003aaf742
commit fa65d7bd0d
3 changed files with 56 additions and 10 deletions

View File

@@ -17,6 +17,8 @@ class ClientConnection:
x: int = 20
y: int = 20
last_position_update_ms: int = 0
movement_window_index: int = -1
movement_window_steps_used: int = 0
def summary(self) -> dict[str, str | int]:
"""Return a compact serializable snapshot for logs/diagnostics."""