mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 19:28:03 +00:00
Server-side changes: - Unlock endpoint already returns roomData for doors Client-side changes: - Pass serverResponse through minigame callback chain - Store serverResponse in minigame gameResult (password & PIN) - Update minigame-starters to pass result to callbacks - Update unlock-system callbacks to accept and pass serverResponse - Pass roomData to unlockDoor for doors - Cache roomData in roomDataCache before loadRoom is called - loadRoom checks cache before making API call Benefits: - Doors: Unlock + room load = 1 API call instead of 2 - Containers: Unlock + contents = 1 API call instead of 2 - More efficient, faster user experience - Consistent pattern for both doors and containers