Dinger: Kartenspiel in Godot 4.7
Elemente, Kombos, Fallen, KI mit Vorausschau, Kampagne, Hotseat und Netzwerk, Werkstatt, Erfolge, Tagesaufgaben, Tests und Exporte. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QPgKvy5W9WRNFHjkm5QsHx
This commit is contained in:
11
tests/dump_cards.gd
Normal file
11
tests/dump_cards.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends SceneTree
|
||||
## Schreibt den Kartenpool als JSON: godot --headless --path . -s tests/dump_cards.gd
|
||||
|
||||
|
||||
func _initialize() -> void:
|
||||
var list := Cards.all().map(func(c): return c.to_dict())
|
||||
var f := FileAccess.open("res://data/karten.json", FileAccess.WRITE)
|
||||
f.store_string(JSON.stringify({"karten": list}, "\t", false))
|
||||
f.close()
|
||||
print("%d Karten nach data/karten.json geschrieben" % list.size())
|
||||
quit()
|
||||
Reference in New Issue
Block a user