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.
src
core
components
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
24
#include "
core/components/resourceledger.h
"
25
26
namespace
cqsp::core::components
{
27
struct
Labor
{
28
GoodEntity
good
;
29
// Then some other stats like uh things
30
};
31
32
struct
PopulationLabor
{
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
37
ResourceVector
labor_hours
;
38
};
39
}
// namespace cqsp::core::components
cqsp::core::components::ResourceVector
This is a vector meant for fast iteration
Definition:
resourceledger.h:223
cqsp::core::components
Definition:
area.h:27
cqsp::core::components::GoodEntity
GoodEntity
Definition:
resourceledger.h:28
resourceledger.h
cqsp::core::components::Labor
Definition:
labor.h:27
cqsp::core::components::Labor::good
GoodEntity good
Definition:
labor.h:28
cqsp::core::components::PopulationLabor
Definition:
labor.h:32
cqsp::core::components::PopulationLabor::labor_hours
ResourceVector labor_hours
Definition:
labor.h:37
cqsp::core::components::PopulationLabor::labor_distribution
std::unordered_map< entt::entity, uint64_t > labor_distribution
Definition:
labor.h:35
Generated on Thu Jul 9 2026 07:40:54 for Conquer Space by
1.9.2