summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop.Tests
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 01:41:05 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 01:41:05 +0800
commitfc77481196aaea817eec991bdcf4dc22bb1d245c (patch)
tree95df2d0bff79a742c7f3637fbec680f2e6945316 /src/LivingVillage.Desktop.Tests
parentb6b95988e525a68ea7426ecc9690b18a1b3bbfe8 (diff)
downloadliving-village-fc77481196aaea817eec991bdcf4dc22bb1d245c.tar.gz
feat(desktop): 江南美术改为真实 PNG 图集
- scripts/make-jiangnan-art.py 生成三张原创透明 PNG:世界 256x32、角色 1024x48、内景 392x96 - VillageArt.fs 移除进程内像素烘焙,改为 BaseDirectory 加载图集并校验尺寸 - 内景渲染改用图集(地板/墙/窗/桌/床/屏/毯/柜),新增玩家专属 StrawHat 变体 - 内景新增地毯与柜子装饰,角色按 FeetPosition 定位 - fsproj 随包复制三张 PNG;m6c-package.sh 校验三张 PNG 进入交付包
Diffstat (limited to 'src/LivingVillage.Desktop.Tests')
-rw-r--r--src/LivingVillage.Desktop.Tests/PrototypeTests.fs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/LivingVillage.Desktop.Tests/PrototypeTests.fs b/src/LivingVillage.Desktop.Tests/PrototypeTests.fs
index 842ab4a..c5b127f 100644
--- a/src/LivingVillage.Desktop.Tests/PrototypeTests.fs
+++ b/src/LivingVillage.Desktop.Tests/PrototypeTests.fs
@@ -416,3 +416,16 @@ type PrototypeTests () =
Assert.IsTrue(manifestLines |> Array.forall (fun line -> line.Length = 1), "The CJK manifest must contain exactly one character per line.")
CollectionAssert.AreEqual(characters, manifestLines |> Array.map (fun line -> line.[0]))
Assert.IsTrue(File.Exists(runtimeAssetPath ()), sprintf "Missing atlas PNG: %s" (runtimeAssetPath ()))
+
+ [<TestMethod>]
+ member _.JiangnanArtAssetsArePackagedAsRealPngFiles () =
+ let requiredAssets =
+ [ "Assets/jiangnan-world.png"
+ "Assets/jiangnan-characters.png"
+ "Assets/jiangnan-interior.png" ]
+
+ let missing =
+ requiredAssets
+ |> List.filter (fun relativePath -> not (File.Exists(Path.Combine(AppContext.BaseDirectory, relativePath))))
+
+ Assert.AreEqual<string list>([], missing, sprintf "Missing Jiangnan PNG assets: %s" (String.concat ", " missing))