legatt ff6c146153 Enterprise salary and API
- Enterprises have action type, money, salary and bankruption status
- Enterprise add and multiply functions replaced with setters
- Delivery contracts have cost, distance and sponsor reference. Value renamed to amount
- Integer values use static sizes types
- Action CONTAIN renamed to STORE
- Enterprises skip their action if is bankrupt
- Delivering transfers money from sponsor to deliverer due contract
- Enterprise routine system processes salaries and bankruptcy
- ee_ecs data structures renamed with snake_case
- Get enterprises info request
2025-08-06 17:52:37 +03:00

24 lines
437 B
C++

#pragma once
#include <unordered_map>
#include <ee_economy/economy.hpp>
#include <variant>
namespace ee_ecs
{
struct init_configuration
{
std::unordered_map<int16_t, ee_economy::container> states;
};
struct enterprise_info
{
const ee_economy::enterprise* info = nullptr;
const ee_economy::container* storage = nullptr;
std::variant<
const ee_economy::miner*,
const ee_economy::deliverer*
> special_info;
};
}