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.
Namespaces | Macros | Functions
resource.cpp File Reference
#include "common/components/resource.h"
#include <spdlog/spdlog.h>
#include <algorithm>
#include <limits>
#include <ranges>
#include <utility>

Namespaces

namespace  cqsp
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 
namespace  cqsp::common
 
namespace  cqsp::common::components
 

Macros

#define compare(map, compare_to, comparison)
 

Functions

ResourceLedger cqsp::common::components::CopyVals (const ResourceLedger &keys, const ResourceLedger &values)
 Creates a new resource ledger using the keys from one resource ledger, and the values from annother More...
 

Macro Definition Documentation

◆ compare

#define compare (   map,
  compare_to,
  comparison 
)
Value:
bool op = true; \
if ((map).empty()) { \
return 0 comparison compare_to; \
} \
for (auto iterator = (map).begin(); iterator != (map).end(); iterator++) { \
op &= iterator->second comparison compare_to; \
} \
return op;