Project Alice
Loading...
Searching...
No Matches
game_scene::scene_properties Struct Reference

#include <game_scene.hpp>

Public Attributes

scene_id id
 
std::function< ui::element_base *(sys::state &state)> get_root
 
bool starting_scene = false
 
bool final_scene = false
 
bool enforced_pause = false
 
bool based_on_map = true
 
bool overwrite_map_tooltip = false
 
bool accept_events = false
 
bool is_lobby = false
 
bool game_in_progress = true
 
borders_granularity borders = borders_granularity::province
 
std::function< void(sys::state &state, dcon::nation_id nation, dcon::province_id target, sys::key_modifiers mod)> rbutton_selected_units
 
std::function< void(sys::state &state, dcon::nation_id nation, dcon::province_id target, sys::key_modifiers mod)> rbutton_province
 
bool allow_drag_selection
 
std::function< void(sys::state &state, int32_t x, int32_t y, sys::key_modifiers mod)> on_drag_start
 
std::function< void(sys::state &state, int32_t x, int32_t y, sys::key_modifiers mod)> drag_selection
 
std::function< void(sys::state &state)> lbutton_up
 
std::function< sys::virtual_key(sys::state &state, sys::virtual_key keycode, sys::key_modifiers mod)> keycode_mapping
 
std::function< void(sys::state &state, sys::virtual_key keycode, sys::key_modifiers mod)> handle_hotkeys
 
std::function< void(sys::state &state, std::string_view message)> console_log
 
std::function< void(sys::state &state)> render_ui = do_nothing
 
std::function< void(sys::state &state)> render_map = render_map_generic
 
std::function< ui::mouse_probe(sys::state &state, ui::mouse_probe mouse_probe, ui::mouse_probe tooltip_probe)> recalculate_mouse_probe = recalculate_mouse_probe_identity
 
std::function< ui::mouse_probe(sys::state &state, ui::mouse_probe mouse_probe, ui::mouse_probe tooltip_probe)> recalculate_tooltip_probe = recalculate_mouse_probe_identity
 
std::function< void(sys::state &state)> clean_up = do_nothing
 
std::function< void(sys::state &state)> on_game_state_update = generic_map_scene_update
 
std::function< void(sys::state &state)> on_game_state_update_update_ui = do_nothing
 
std::function< void(sys::state &state)> open_chat = open_chat_during_game
 
std::function< void(sys::state &state, std::vector< uint32_t > &data, dcon::province_id selected_province)> update_highlight_texture = highlight_given_province
 

Detailed Description

Definition at line 109 of file game_scene.hpp.

Member Data Documentation

◆ accept_events

bool game_scene::scene_properties::accept_events = false

Definition at line 119 of file game_scene.hpp.

◆ allow_drag_selection

bool game_scene::scene_properties::allow_drag_selection

Definition at line 137 of file game_scene.hpp.

◆ based_on_map

bool game_scene::scene_properties::based_on_map = true

Definition at line 117 of file game_scene.hpp.

◆ borders

borders_granularity game_scene::scene_properties::borders = borders_granularity::province

Definition at line 123 of file game_scene.hpp.

◆ clean_up

std::function<void(sys::state& state)> game_scene::scene_properties::clean_up = do_nothing

Definition at line 166 of file game_scene.hpp.

◆ console_log

std::function<void(sys::state& state, std::string_view message)> game_scene::scene_properties::console_log

Definition at line 153 of file game_scene.hpp.

◆ drag_selection

std::function<void(sys::state& state, int32_t x, int32_t y, sys::key_modifiers mod)> game_scene::scene_properties::drag_selection

Definition at line 141 of file game_scene.hpp.

◆ enforced_pause

bool game_scene::scene_properties::enforced_pause = false

Definition at line 116 of file game_scene.hpp.

◆ final_scene

bool game_scene::scene_properties::final_scene = false

Definition at line 115 of file game_scene.hpp.

◆ game_in_progress

bool game_scene::scene_properties::game_in_progress = true

Definition at line 121 of file game_scene.hpp.

◆ get_root

std::function<ui::element_base* (sys::state& state)> game_scene::scene_properties::get_root

Definition at line 112 of file game_scene.hpp.

◆ handle_hotkeys

std::function<void(sys::state& state, sys::virtual_key keycode, sys::key_modifiers mod)> game_scene::scene_properties::handle_hotkeys

Definition at line 150 of file game_scene.hpp.

◆ id

scene_id game_scene::scene_properties::id

Definition at line 110 of file game_scene.hpp.

◆ is_lobby

bool game_scene::scene_properties::is_lobby = false

Definition at line 120 of file game_scene.hpp.

◆ keycode_mapping

std::function<sys::virtual_key(sys::state& state, sys::virtual_key keycode, sys::key_modifiers mod)> game_scene::scene_properties::keycode_mapping

Definition at line 148 of file game_scene.hpp.

◆ lbutton_up

std::function<void(sys::state& state)> game_scene::scene_properties::lbutton_up

Definition at line 144 of file game_scene.hpp.

◆ on_drag_start

std::function<void(sys::state& state, int32_t x, int32_t y, sys::key_modifiers mod)> game_scene::scene_properties::on_drag_start

Definition at line 139 of file game_scene.hpp.

◆ on_game_state_update

std::function<void(sys::state& state)> game_scene::scene_properties::on_game_state_update = generic_map_scene_update

Definition at line 168 of file game_scene.hpp.

◆ on_game_state_update_update_ui

std::function<void(sys::state& state)> game_scene::scene_properties::on_game_state_update_update_ui = do_nothing

Definition at line 169 of file game_scene.hpp.

◆ open_chat

std::function<void(sys::state& state)> game_scene::scene_properties::open_chat = open_chat_during_game

Definition at line 173 of file game_scene.hpp.

◆ overwrite_map_tooltip

bool game_scene::scene_properties::overwrite_map_tooltip = false

Definition at line 118 of file game_scene.hpp.

◆ rbutton_province

std::function<void( sys::state& state, dcon::nation_id nation, dcon::province_id target, sys::key_modifiers mod)> game_scene::scene_properties::rbutton_province

Definition at line 134 of file game_scene.hpp.

◆ rbutton_selected_units

std::function<void( sys::state& state, dcon::nation_id nation, dcon::province_id target, sys::key_modifiers mod)> game_scene::scene_properties::rbutton_selected_units

Definition at line 129 of file game_scene.hpp.

◆ recalculate_mouse_probe

std::function<ui::mouse_probe(sys::state& state, ui::mouse_probe mouse_probe, ui::mouse_probe tooltip_probe)> game_scene::scene_properties::recalculate_mouse_probe = recalculate_mouse_probe_identity

Definition at line 161 of file game_scene.hpp.

◆ recalculate_tooltip_probe

std::function<ui::mouse_probe(sys::state& state, ui::mouse_probe mouse_probe, ui::mouse_probe tooltip_probe)> game_scene::scene_properties::recalculate_tooltip_probe = recalculate_mouse_probe_identity

Definition at line 163 of file game_scene.hpp.

◆ render_map

std::function<void(sys::state& state)> game_scene::scene_properties::render_map = render_map_generic

Definition at line 157 of file game_scene.hpp.

◆ render_ui

std::function<void(sys::state& state)> game_scene::scene_properties::render_ui = do_nothing

Definition at line 156 of file game_scene.hpp.

◆ starting_scene

bool game_scene::scene_properties::starting_scene = false

Definition at line 114 of file game_scene.hpp.

◆ update_highlight_texture

std::function<void(sys::state& state, std::vector<uint32_t>& data, dcon::province_id selected_province)> game_scene::scene_properties::update_highlight_texture = highlight_given_province

Definition at line 177 of file game_scene.hpp.


The documentation for this struct was generated from the following file: