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.
recipeviewer.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 <array>
20#include <string>
21#include <vector>
22
25
26namespace cqsp::client::systems {
28 public:
30
31 void Init();
32 void DoUI(int delta_time);
33 void DoUpdate(int delta_time);
34
35 private:
36 void RecipeViewerRight();
37 void RecipeHeader();
38 void OutputSection(core::components::Recipe& recipe, const std::vector<std::string>& good_list);
39 double LaborSection(core::components::Recipe& recipe, const std::vector<std::string>& job_list);
40 void ProfitAnalysis(const core::components::Recipe& recipe, double total_job_cost);
41 void ConstructionCostSection(const std::vector<std::string>& good_list);
42 void ResetSelection();
43 void SaveRecipes();
45 void CreateRecipe();
46 entt::entity selected_recipe = entt::null;
47
48 std::array<char, 255> search_text;
50 const ImVec4 id_copy_color = ImVec4(0.921568627f, 0.392156863f, 0.203921569f, 1.f);
57};
58} // namespace cqsp::client::systems
Definition: recipeviewer.h:27
double LaborSection(core::components::Recipe &recipe, const std::vector< std::string > &job_list)
Definition: recipeviewer.cpp:189
void ProfitAnalysis(const core::components::Recipe &recipe, double total_job_cost)
Definition: recipeviewer.cpp:232
void Init()
Definition: recipeviewer.cpp:59
void RecipeHeader()
Definition: recipeviewer.cpp:160
void SaveRecipes()
Definition: recipeviewer.cpp:322
std::array< char, 255 > search_text
Definition: recipeviewer.h:48
void CreateRecipe()
Definition: recipeviewer.cpp:415
void ConstructionCostSection(const std::vector< std::string > &good_list)
Definition: recipeviewer.cpp:246
void DoUpdate(int delta_time)
Definition: recipeviewer.cpp:111
void InitializeRecipeFiles()
Definition: recipeviewer.cpp:300
int new_construction_good_idx
Definition: recipeviewer.h:55
void DoUI(int delta_time)
Definition: recipeviewer.cpp:61
float expected_production
Definition: recipeviewer.h:49
int new_output_good_idx
Definition: recipeviewer.h:54
void OutputSection(core::components::Recipe &recipe, const std::vector< std::string > &good_list)
Definition: recipeviewer.cpp:170
SysRecipeViewer(engine::Application &app)
Definition: recipeviewer.h:29
entt::entity selected_recipe
Definition: recipeviewer.h:46
int new_capital_good_idx
Definition: recipeviewer.h:52
void RecipeViewerRight()
Definition: recipeviewer.cpp:113
void ResetSelection()
Definition: recipeviewer.cpp:290
const ImVec4 id_copy_color
Definition: recipeviewer.h:50
int new_labor_job_idx
Definition: recipeviewer.h:53
int new_zoning_idx
Definition: recipeviewer.h:56
int new_input_good_idx
Definition: recipeviewer.h:51
Definition: application.h:61
Definition: editorwidgets.cpp:29
Definition: resource.h:91