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.
labor.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <unordered_map>
20#include <utility>
21
22#include <entt/entity/entity.hpp>
23
25
26namespace cqsp::core::components {
27struct Labor {
29 // Then some other stats like uh things
30};
31
33 // This will be updated less regularly
34 // TODO(EhWhoAmI): Fix this to a vector or something
35 std::unordered_map<entt::entity, uint64_t> labor_distribution;
36 // A pop sells its labor hours on the market
38};
39} // namespace cqsp::core::components
This is a vector meant for fast iteration
Definition: resourceledger.h:223
Definition: area.h:27
GoodEntity
Definition: resourceledger.h:28
Definition: labor.h:27
GoodEntity good
Definition: labor.h:28
ResourceVector labor_hours
Definition: labor.h:37
std::unordered_map< entt::entity, uint64_t > labor_distribution
Definition: labor.h:35