From 6a0b147e4e09ac165c2c6441b46117db30cead33 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Mon, 6 Jul 2026 21:37:55 -0500 Subject: [PATCH] feat: add battlefield, match stub, and upload result templates --- src/Views/battlefield-editor.php | 56 ++++++++++++++++++++++++++++++++ src/Views/match-stub.php | 28 ++++++++++++++++ src/Views/upload-result.php | 26 +++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 src/Views/battlefield-editor.php create mode 100644 src/Views/match-stub.php create mode 100644 src/Views/upload-result.php diff --git a/src/Views/battlefield-editor.php b/src/Views/battlefield-editor.php new file mode 100644 index 0000000..e61211d --- /dev/null +++ b/src/Views/battlefield-editor.php @@ -0,0 +1,56 @@ + Escape::html($v); +$a = static fn (string $v): string => Escape::attr($v); +$terrain = ['open', 'forest', 'rough', 'water', 'blocking']; +?> +

Battlefield editor

+

Scenario:

+
+ +
+ Battlefield + + +
+
+ Terrain palette + + + +
+
+ Grid ( × ) + + + + + + + + +
+
+
+ Deployment zones + + + +
+ +
+ + Escape::html($v); +$matchInfo = $matchJson !== null ? "Match loaded." : "No match in progress."; +?> +

Match

+

+ +
+ Match state (debug) +
+
+ +

Battle interface coming in Plan 4.

+

Back to home

+ Escape::html($v); +$json = json_encode(['url' => $url], JSON_THROW_ON_ERROR); +?> +

Uploaded:

+ +