Project Alice
Loading...
Searching...
No Matches
unit_tooltip.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "system_state.hpp"
4
5namespace ui {
6
7struct unitamounts {
8 uint32_t type1_pop = 0; //4-0
9 uint32_t type2_pop = 0; //4-4
11 uint16_t type1 = 0; //2-12
12 uint16_t type2 = 0; //2-14
13 uint16_t type3 = 0; //2-16,18
14};
15
16unitamounts calc_amounts_from_army(sys::state& state, dcon::army_fat_id army);
17unitamounts calc_amounts_from_navy(sys::state& state, dcon::navy_fat_id navy);
18
19void populate_unit_tooltip(sys::state& state, text::columnar_layout& contents, dcon::province_id prov);
20void single_unit_tooltip(sys::state& state, text::columnar_layout& contents, dcon::army_id a);
21void single_unit_tooltip(sys::state& state, text::columnar_layout& contents, dcon::navy_id n);
22
23}
unitamounts calc_amounts_from_navy(sys::state &state, dcon::navy_fat_id navy)
unitamounts calc_amounts_from_army(sys::state &state, dcon::army_fat_id army)
Definition: unit_tooltip.cpp:7
void populate_unit_tooltip(sys::state &state, text::columnar_layout &contents, dcon::province_id prov)
void single_unit_tooltip(sys::state &state, text::columnar_layout &contents, dcon::army_id a)
uint uint32_t
uint32_t type2_pop
Definition: unit_tooltip.hpp:9
uint32_t type1_pop
Definition: unit_tooltip.hpp:8
uint32_t type3_pop