drop the dead payloads from the state-change events

This commit is contained in:
2026-08-03 22:02:47 +02:00
parent d9ef6aa728
commit 906000b0e9
6 changed files with 17 additions and 32 deletions

View File

@@ -2,10 +2,9 @@
#include "Event.h"
// Fired when the collected artifact count changes. Carries no payload —
// subscribers re-read Simulation::getArtifactCount(), and the win count from
// world.artifacts.artifactWinCount.
class ArtifactCountChangedEvent : public Event
{
public:
ArtifactCountChangedEvent(int count, int winCount) : count(count), winCount(winCount) {}
const int count;
const int winCount;
};