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.
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
modifier.h File Reference
#include <fmt/format.h>
#include <numeric>
#include <optional>
#include <string_view>
#include <type_traits>
#include <utility>
#include <vector>
#include <entt/entity/entity.hpp>

Go to the source code of this file.

Classes

struct  cqsp::core::components::Modifier
 
struct  cqsp::core::components::ModifiableValue< Op >
 
struct  fmt::formatter< cqsp::core::components::ModifiableValue< Op > >
 

Namespaces

namespace  cqsp
 
namespace  cqsp::core
 
namespace  cqsp::core::components
 

Macros

#define CQSP_MODIFIER_TARGET_LIST
 
#define X(name, str)   name,
 

Typedefs

typedef ModifiableValue< ModifierOp::Additive > cqsp::core::components::AdditiveModifier
 
typedef ModifiableValue< ModifierOp::Multiplicative > cqsp::core::components::MultiplicativeModifier
 

Enumerations

enum class  cqsp::core::components::ModifierTarget : uint16_t { cqsp::core::components::X , cqsp::core::components::CQSP_MODIFIER_TARGET_LIST }
 
enum class  cqsp::core::components::ModifierOp { cqsp::core::components::Additive , cqsp::core::components::Multiplicative }
 

Functions

std::string_view cqsp::core::components::ModifierTargetToString (ModifierTarget t)
 
std::optional< ModifierTarget > cqsp::core::components::ModifierTargetFromString (std::string_view s)
 

Macro Definition Documentation

◆ CQSP_MODIFIER_TARGET_LIST

#define CQSP_MODIFIER_TARGET_LIST
Value:
X(ExpertiseGain, "expertise_gain") \
X(MaxExpertise, "max_expertise")
#define X(name, str)
Definition: modifier.h:38

◆ X

#define X (   name,
  str 
)    name,