Modern UI contract: mailbox messages and news.update
The news read carries the desk manager's mailbox as the contract's messages with ids that survive the original's compaction. news.update marks a message read or unread, moves it to the trash and back (saved marks; the message stays in the original mailbox) and archives it as the original's keep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c361dccd34
commit
179cd970ad
6 files changed
+139
-2
No files matched your search
@@ -11,6 +11,7 @@
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
@@ -116,6 +117,9 @@ struct ModernState : GameState {
|
||||
// each manager's cash at its start; the change over a month is finance.profit / finance.loss.
|
||||
uint32_t press_month = 0;
|
||||
std::vector<int64_t> press_month_cash;
|
||||
// The interface's mailbox marks per manager id and message id (news.update): bit 0 read,
|
||||
// bit 1 in the trash. Keeping a message is the original's own flag in the mailbox.
|
||||
std::map<std::string, std::map<std::string, uint8_t>> news_marks;
|
||||
// How and when the career ended ("" while it runs; "career_completed" when the set duration ran
|
||||
// out, "last_human_resigned" when the only or last human manager gave up): the interface's
|
||||
// terminationReason and the end of the employments.
|
||||
|
||||
Reference in new issue
Block a user