From b4ab88f7086d87736848fc026bc87db651f8732e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 21 Apr 2022 14:41:45 -0400 Subject: add opened tabs to state --- src/state.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/state.hpp') diff --git a/src/state.hpp b/src/state.hpp index 230808f..81c36d2 100644 --- a/src/state.hpp +++ b/src/state.hpp @@ -1,3 +1,4 @@ +#pragma once #include #include #include "discord/snowflake.hpp" @@ -18,9 +19,17 @@ struct ExpansionState { friend void from_json(const nlohmann::json &j, ExpansionState &m); }; +struct TabsState { + std::vector Channels; + + friend void to_json(nlohmann::json &j, const TabsState &m); + friend void from_json(const nlohmann::json &j, TabsState &m); +}; + struct AbaddonApplicationState { Snowflake ActiveChannel; ExpansionStateRoot Expansion; + TabsState Tabs; friend void to_json(nlohmann::json &j, const AbaddonApplicationState &m); friend void from_json(const nlohmann::json &j, AbaddonApplicationState &m); -- cgit v1.2.3