Vollständiger, engineunabhängiger Regelkern (Luneraria.Core, ohne UnityEngine): Partie mit sechs Plätzen und zwei Teams, private Planung mit atomarer Übernahme, Gold, Käufe, Aufwertungen, Formation, drei Lanes mit zwei Laneturmen und zwei Basistürmen je Team, Ancients, unbegrenzte Wellen, Helden mit Stufen, Items und Talenten, Angriffschampions, Bossgrotte mit Anspruch, Entsendung, Kopfgeld und dreirundiger Sperre, Bots und Siegbedingung (nur Ancient-Fall). Serverautoritative Befehlsschnittstelle. - Deterministisch: fester Takt, geordnete Maps, fortlaufende IDs, kein Zufall, keine Uhr, keine Threads - Tabellen einmal aus Godot erzeugt (tools/port/gen_content.py) - Golden-Referenzen aus Godot (tools/godot-golden): 19 Szenarien, 120 Snapshots, 51.221 Werte, Abweichung 0 (Toleranzen dokumentiert) - Tests: content 75, core 91, m2 73, golden 157, determinism 6 = 402/402 - Leistung (M5): Simulationsschritt 0,259 ms statt 1,587 ms in GDScript - Referenzfehler R1 im Bot-Gedächtnis bewusst übernommen und dokumentiert - Geplante Helden (Lucy, Ghaliga, Siegfried, Feena) im Datenmodell, inaktiv - Doku unter docs/port (U1-RULES, PORT-STATUS, PORT-QA, U2 bis U5) Unity-Editor-Lauf offen: Die Unity-Lizenz ist noch nicht aktiviert; gebaut und getestet mit dem .NET 8 SDK auf Unitys Sprachstand (C# 9, .NET Standard 2.1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
942 B
Bash
Executable file
27 lines
942 B
Bash
Executable file
#!/bin/sh
|
|
# Runs a tool of tools/godot-golden as a scene inside the Godot reference project, so the
|
|
# project's autoloads (DataCatalog, ...) exist; `godot --script` would not load them.
|
|
# The tool is copied to <godot project>/.port_tmp/ for the run and removed afterwards; the
|
|
# reference repository stays unchanged.
|
|
# Usage: sh tools/godot-golden/run_godot.sh <tool name without .gd> [tool arguments ...]
|
|
set -u
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
GODOT_PROJECT="${GODOT_PROJECT:-$HERE/../../../saumwacht-godot}"
|
|
GODOT="${GODOT:-godot}"
|
|
NAME="$1"
|
|
shift
|
|
TMP="$GODOT_PROJECT/.port_tmp"
|
|
mkdir -p "$TMP"
|
|
cp "$HERE/$NAME.gd" "$TMP/$NAME.gd"
|
|
cat > "$TMP/$NAME.tscn" <<SCENE
|
|
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://.port_tmp/$NAME.gd" id="1"]
|
|
|
|
[node name="PortTool" type="Node"]
|
|
script = ExtResource("1")
|
|
SCENE
|
|
"$GODOT" --headless --path "$GODOT_PROJECT" "res://.port_tmp/$NAME.tscn" -- "$@"
|
|
CODE=$?
|
|
rm -rf "$TMP"
|
|
exit $CODE
|