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.
projects.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 <cstdint>
20#include <vector>
21
23
24namespace cqsp::core::components {
26struct Project {
27 // Current progress
28 uint64_t progress;
29
30 // The final progress in days or something
31 uint64_t max_progress;
32 // Then we also attach some sort of resource ledger for the consumption
33 // Also somehow
36
38 entt::entity result;
39 entt::entity project_template;
40};
41
45};
46
47struct Mission {
48 entt::entity project;
49 entt::entity target_body;
50 entt::entity province;
51};
52
54 // Status stuff
55};
56} // namespace cqsp::core::components
This is a vector meant for fast iteration
Definition: resourceledger.h:223
Definition: area.h:27
ProjectType
Definition: projects.h:25
Definition: projects.h:47
entt::entity province
Definition: projects.h:50
entt::entity project
Definition: projects.h:48
entt::entity target_body
Definition: projects.h:49
Definition: projects.h:26
uint64_t progress
Definition: projects.h:28
double project_total_cost
Definition: projects.h:34
uint64_t max_progress
Definition: projects.h:31
entt::entity project_template
Definition: projects.h:39
entt::entity result
Definition: projects.h:38
ProjectType type
Definition: projects.h:37
double project_last_cost
Definition: projects.h:35
int max_progress
Definition: projects.h:44
ResourceVector cost
Definition: projects.h:43