feat(calculator): support generate PerformanceAttributes & DifficultyAttributes from JSON Schema (#59)

Prepare for custom rulesets.

Schema Genetator: https://github.com/GooGuTeam/custom-rulesets/tree/main/CustomRulesetMetadataGenerator

```bash
dotnet -- schemas path/to/rulesets -o schema.json
```

```bash
python scripts/generate_ruleset_attributes.py schema.json 
```
This commit is contained in:
MingxuanGame
2025-10-25 19:10:53 +08:00
committed by GitHub
parent f792d146b5
commit 2c81e22749
12 changed files with 370 additions and 85 deletions

View File

@@ -6,7 +6,7 @@ on:
- main
paths:
- "app/config.py"
- ".github/scripts/generate_config_doc.py"
- "scripts/generate_config_doc.py"
workflow_dispatch:
permissions:
@@ -42,7 +42,7 @@ jobs:
- name: Generate Markdown
run: |
cd project
python ./.github/scripts/generate_config_doc.py ${{ github.sha }} > ../wiki/Configuration.md
python ./scripts/generate_config_doc.py ${{ github.sha }} > ../wiki/Configuration.md
- name: Commit and push to Wiki
run: |