Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
rightclick.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <variant>
5
6#include <entt/entity/entity.hpp>
7namespace cqsp::client::ctx {
8template <class... Ts>
9struct overloaded : Ts... {
10 using Ts::operator()...;
11};
12
13template <class... Ts>
14overloaded(Ts...) -> overloaded<Ts...>;
15
16typedef std::variant<std::monostate, entt::entity, std::string> SelectedItem;
20
21 void Reset() {
22 world_space = std::monostate();
23 ui_space = std::monostate();
24 }
25};
26} // namespace cqsp::client::ctx
Definition: clientctx.h:27
overloaded(Ts...) -> overloaded< Ts... >
std::variant< std::monostate, entt::entity, std::string > SelectedItem
Definition: rightclick.h:16
Definition: rightclick.h:17
SelectedItem world_space
Definition: rightclick.h:18
void Reset()
Definition: rightclick.h:21
SelectedItem ui_space
Definition: rightclick.h:19
Definition: rightclick.h:9