- 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
14 lines
265 B
C++
14 lines
265 B
C++
#pragma once
|
|
#include <vector>
|
|
#include "data.hpp"
|
|
|
|
namespace ee_ecs
|
|
{
|
|
|
|
void init(init_configuration config);
|
|
void start();
|
|
|
|
template<typename T>
|
|
const std::vector<enterprise_info> get_all_enterprises();
|
|
//const enterprise_info get_enterprise(uint32_t id);
|
|
} |