diff options
Diffstat (limited to 'c++')
-rw-r--r-- | c++/schema.h | 74 |
1 files changed, 74 insertions, 0 deletions
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">, + +>; + +} +} +} |