- 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
24 lines
437 B
C++
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;
|
|
};
|
|
|
|
} |