docs: define A01 grid and entry states

This commit is contained in:
rain
2026-07-13 13:18:04 +08:00
parent f684ae3f92
commit 5507ba96b4
3 changed files with 39 additions and 11 deletions
+19
View File
@@ -22,6 +22,25 @@ foreach ($rule in $rules) {
}
}
$layoutRules = @(
(ConvertFrom-Utf8Base64 '5YaF5a655a695bqmIDYzOHJweA=='),
(ConvertFrom-Utf8Base64 '5Li75oyJ6ZKu6auY5bqmIDEwOHJweA=='),
(ConvertFrom-Utf8Base64 'ZW52KHNhZmUtYXJlYS1pbnNldC1ib3R0b20p'),
(ConvertFrom-Utf8Base64 '6LSm5Y+35a+G56CB55m75b2VIC8g5omL5py66aqM6K+B56CB55m75b2V')
)
foreach ($rule in $layoutRules) {
if ($record -notmatch [regex]::Escape($rule)) {
throw "Missing A01 layout rule: $rule"
}
}
$currentStructure = [regex]::Match($record, '(?s)## 2\..*?(?=## 3\.)').Value
$currentStructureRule = ConvertFrom-Utf8Base64 '5Lik5Liq5aSn5oyJ6ZKu5ZKM5LiA5Liq5paH5a2X5YWl5Y+j'
if ($currentStructure -notmatch [regex]::Escape($currentStructureRule)) {
throw "Missing current A01 structure rule: $currentStructureRule"
}
if (-not (Test-Path -LiteralPath $effect)) {
throw "Missing archived A01 effect: $effect"
}