legatt 32f4597c4d Base frontend module
- Naming style migrated to camel-case
- P7lib logger sources added
- Vcpkg manifest, CMake presets and build moved to root
- SDL2, Vulkan and RmlUi dependencies added
- Logger LOG macro added
- Logger  configuration
- SDL2 window configuration
- Vulkan configuration
- RmlUi configuration
- SDL event loop
2025-08-08 00:07:32 +03:00

27 lines
471 B
C++

// Rules for resources exchange in base before modifiers applying
#pragma once
#include <unordered_map>
#include "defines.hpp"
namespace ee_economy
{
struct ExchangeRule
{
double outValue;
std::unordered_map<RESOURCE_TYPE, double> consume;
};
const std::unordered_map<RESOURCE_TYPE, exchange_rule> resourcesExchange = {
{
RESOURCE_TYPE::FABRIC,
exchange_rule {
.outValue = 2.,
.consume = {
{RESOURCE_TYPE::WOOL, 3.}
}
}
}
};
}