From c40b8a412272a7a407764166917cf3c61e7dc47f Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 4 Nov 2021 01:48:13 -0400 Subject: add files that should have been pushed with last commit oops --- state.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 state.hpp (limited to 'state.hpp') diff --git a/state.hpp b/state.hpp new file mode 100644 index 0000000..230808f --- /dev/null +++ b/state.hpp @@ -0,0 +1,27 @@ +#include +#include +#include "discord/snowflake.hpp" + +struct ExpansionState; +struct ExpansionStateRoot { + std::map Children; + + friend void to_json(nlohmann::json &j, const ExpansionStateRoot &m); + friend void from_json(const nlohmann::json &j, ExpansionStateRoot &m); +}; + +struct ExpansionState { + bool IsExpanded; + ExpansionStateRoot Children; + + friend void to_json(nlohmann::json &j, const ExpansionState &m); + friend void from_json(const nlohmann::json &j, ExpansionState &m); +}; + +struct AbaddonApplicationState { + Snowflake ActiveChannel; + ExpansionStateRoot Expansion; + + friend void to_json(nlohmann::json &j, const AbaddonApplicationState &m); + friend void from_json(const nlohmann::json &j, AbaddonApplicationState &m); +}; -- cgit v1.2.3