Add MVP join server screen

This commit is contained in:
2026-05-18 21:02:21 -07:00
parent c855924034
commit 2009295c18
6 changed files with 165 additions and 1 deletions
+57
View File
@@ -0,0 +1,57 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
FILES = {
"AgrarianMvpFrontendWidget.h": ROOT / "Source" / "AgrarianGame" / "AgrarianMvpFrontendWidget.h",
"AgrarianMvpFrontendWidget.cpp": ROOT / "Source" / "AgrarianGame" / "AgrarianMvpFrontendWidget.cpp",
"AgrarianGamePlayerController.h": ROOT / "Source" / "AgrarianGame" / "AgrarianGamePlayerController.h",
"AgrarianGamePlayerController.cpp": ROOT / "Source" / "AgrarianGame" / "AgrarianGamePlayerController.cpp",
"AGRARIAN_DEVELOPMENT_ROADMAP.md": ROOT / "AGRARIAN_DEVELOPMENT_ROADMAP.md",
}
EXPECTED = {
"AgrarianMvpFrontendWidget.h": [
"JoinServer",
"JoinServerAddress",
"play.agrariangame.com:7777",
"DrawJoinServer",
],
"AgrarianMvpFrontendWidget.cpp": [
"EAgrarianMvpFrontendScreen::JoinServer",
"SetActiveScreen(EAgrarianMvpFrontendScreen::JoinServer)",
"Join MVP server",
"Continue to loading",
],
"AgrarianGamePlayerController.h": [
"AgrarianShowMvpScreen",
],
"AgrarianGamePlayerController.cpp": [
"AgrarianShowMvpScreen",
"SetActiveScreen(EAgrarianMvpFrontendScreen::JoinServer)",
"Usage: AgrarianShowMvpScreen main|character|join",
],
"AGRARIAN_DEVELOPMENT_ROADMAP.md": [
"[x] Add join server screen.",
"`JoinServer`",
"play.agrariangame.com:7777",
],
}
def main():
missing = []
for label, path in FILES.items():
text = path.read_text(encoding="utf-8")
for snippet in EXPECTED[label]:
if snippet not in text:
missing.append(f"{label}: {snippet}")
if missing:
raise RuntimeError("MVP join server screen verification failed: " + "; ".join(missing))
print("Agrarian MVP join server screen verification complete.")
if __name__ == "__main__":
main()