summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-08-10 14:20:03 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-08-10 14:20:03 +0200
commit438cda831d0ee7d28e41cc7045d1efbc9a968c67 (patch)
treea5ae102cdbb08806ade0255de55ccbc760a58c86
Initial commit. Schema incomplete
-rw-r--r--README.md3
-rw-r--r--c++/schema.h74
2 files changed, 77 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6fd87e0
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# CLI the Spire
+
+An implementation of the Slay The Spire logic on the command line.
diff --git a/c++/schema.h b/c++/schema.h
new file mode 100644
index 0000000..a4a86e6
--- /dev/null
+++ b/c++/schema.h
@@ -0,0 +1,74 @@
+#pragma once
+
+#include <forstio/codec/schema.h>
+
+namespace kel {
+namespace slay {
+namespace schema {
+using namespace saw::schema;
+
+using RunCampfireChoice = Struct<
+ Member<UInt32, "floor">,
+ Member<String, "key">
+>;
+
+using RunDamageTaken = Struct<
+ Member<UInt32, "damage">,
+ Member<String, "enemies">,
+ Member<UInt32, "floor">,
+ Member<UInt32, "turns">
+>;
+
+using RunPotionsObtained = Struct<
+ Member<UInt32, "floor">,
+ Member<String, "key">
+>;
+
+using Run = Struct<
+ Member<Array<UInt32>, "gold_per_floor">,
+ Member<UInt32, "floor_reached">,
+ Member<UInt32, "playtime">,
+ Member<Array<String>, "items_purged">,
+ Member<UInt32, "score">,
+ Member<String, "play_id">,
+ Member<String, "local_time">,
+ // Member<Bool, "is_ascension_mode">,
+ Member<Array<RunCampfireChoice>, "campfire_choices">,
+ Member<String, "neow_cost">,
+ Member<UInt64, "seed_source_timestamp">,
+ Member<UInt32, "circlet_count">,
+ Member<Array<String>, "master_deck">,
+ Member<Array<String>, "relics">,
+ Member<Array<UInt32>, "potions_floor_usage">,
+ Member<Array<RunDamageTaken>, "damage_taken">,
+ Member<String,"seed_played">,
+ Member<Array<RunPotionsObtained>,"potions_obtained">,
+ // Member<Bool, "is_trial">,
+ Member<Array<String>, "path_per_floor">,
+ Member<String, "character_chosen">,
+ // Member< , "items_purchased"> ????
+ Member<UInt32, "campfire_rested">,
+ // Member< , "items_purchase_floors"> ????
+ Member<Array<UInt32>, "current_hp_per_floor">,
+ Member<UInt32, "gold">,
+ Member<String, "neow_bonus">,
+ // Member<Bool, "is_prod">,
+ // Member<Bool, "is_daily">,
+ // Member<Bool, "chose_seed">,
+ Member<UInt32, "campfire_upgraded">,
+ Member<UInt32, "win_rate">,
+ Member<UInt64, "timestamp">,
+ Member<Array<String>, "path_taken">,
+ Member<String, "build_version">,
+ Member<UInt32, "purchased_purges">,
+ // Member<Bool, "victory">,
+ Member<Array<UInt32>, "max_hp_per_floor">,
+ // Member<Array<RunCardChoice>, "card_choices">,
+ Member<UInt64, "player_experience">,
+ // Member<Array<RunReclicObtained>, "relics_obtained">,
+
+>;
+
+}
+}
+}