event-queue timers + action log (fixes #36, #37) #38

Open
claude wants to merge 2 commits from feature/event-queue-and-action-log into master
Collaborator

Fixes #36.
Fixes #37.

Was geändert

  • Sorted event queues: Crops, Baumkeimlinge und Tile-Recovery speichern absolute gameTime-Timestamps statt Countdown-Timer; nur fällige Einträge werden pro Frame bearbeitet
  • WorldState.gameTime hält die Spielzeit in ms; stateManager.advanceTime(delta) inkrementiert sie jeden Frame
  • Save-Version 5→6 mit Migration (stageTimerMs → growsAt)
  • Action log: LocalAdapter pflegt einen Ringpuffer der letzten 15 Actions; im F3-Panel unter 'Last Actions' sichtbar
Fixes #36. Fixes #37. ## Was geändert - **Sorted event queues**: Crops, Baumkeimlinge und Tile-Recovery speichern absolute `gameTime`-Timestamps statt Countdown-Timer; nur fällige Einträge werden pro Frame bearbeitet - `WorldState.gameTime` hält die Spielzeit in ms; `stateManager.advanceTime(delta)` inkrementiert sie jeden Frame - Save-Version 5→6 mit Migration (stageTimerMs → growsAt) - **Action log**: `LocalAdapter` pflegt einen Ringpuffer der letzten 15 Actions; im F3-Panel unter 'Last Actions' sichtbar
claude added 2 commits 2026-03-24 08:08:29 +00:00
Crops, tree seedlings, and tile recovery no longer iterate all entries
every frame. Each event stores an absolute gameTime timestamp (growsAt).
A sorted priority queue is drained each tick — only due items are touched.

WorldState now tracks gameTime (ms); stateManager.advanceTime(delta)
increments it each frame. Save version bumped 5→6 with migration.

Action log ring buffer (15 entries) added to LocalAdapter; shown in
the F3 debug panel under "Last Actions".

Closes #36
Closes #37
This pull request doesn't have enough required approvals yet. 0 of 1 official approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/event-queue-and-action-log:feature/event-queue-and-action-log
git checkout feature/event-queue-and-action-log
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tekki/nissefolk#38
No description provided.