Every source file in ui, app, game, formats, cli, audio and launch that had none now starts with a short English comment: what it implements, what state it owns and how it relates to its neighbours (request/acknowledge flow, pairs of files, random generator use). Comment lines only; the full build and the runnable tests are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
784 B
C++
16 lines
784 B
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
// Interface for the calendar epoch (start year and weekday) used for date calculations.
|
|
// calendar_epoch_from_executable validates the loaded executable, install_calendar_rules makes it
|
|
// active, calendar_epoch returns it (a synthetic default for isolated test states).
|
|
// Implemented in calendar.cpp; no GameState access and no random numbers.
|
|
#pragma once
|
|
namespace bmh {
|
|
class LeImage;
|
|
struct CalendarEpoch { int year; int weekday; };
|
|
// Read verified original date-setup operands; unknown routines are rejected.
|
|
CalendarEpoch calendar_epoch_from_executable(const LeImage& exe);
|
|
void install_calendar_rules(const LeImage& exe);
|
|
// Isolated authored states default to the established synthetic calendar.
|
|
CalendarEpoch calendar_epoch();
|
|
}
|