61 lines
3.0 KiB
C++
61 lines
3.0 KiB
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
bool engine_mode_ = false, engine_busy_ = false, engine_dirty_ = false, engine_fresh_ = false, engine_base_dirty_ = false;
|
|
std::shared_ptr<EngineBridge> engine_link_;
|
|
std::future<EngineReply> engine_job_;
|
|
Json engine_data_, engine_response_, engine_focus_, engine_training_draft_, engine_tactics_draft_;
|
|
std::string engine_camp_, engine_operation_, engine_notice_, engine_player_;
|
|
Json engine_credit_, engine_credit_edits_ = Json::array();
|
|
std::string engine_contract_operation_;
|
|
std::optional<float> engine_contract_scroll_;
|
|
bool engine_contracts_action(const std::string &, Rml::Element *);
|
|
void engine_contracts_poll();
|
|
void engine_contracts_clear(bool focus = true);
|
|
void engine_contracts_close(bool focus = true);
|
|
int engine_calendar_day_ = -1;
|
|
std::string engine_move_id_, engine_calendar_season_;
|
|
bool engine_schedule_pending_ = false;
|
|
Json engine_calendar_view() const;
|
|
void engine_calendar_sync();
|
|
std::string engine_calendar_info(const Json &) const;
|
|
std::string engine_calendar_footer(const Json &);
|
|
std::string engine_postpone_view();
|
|
bool engine_calendar_action(const std::string &, Rml::Element *);
|
|
std::string engine_friendly_league_, engine_friendly_opponent_, engine_friendly_date_;
|
|
bool engine_friendly_home_ = true, engine_friendly_pending_ = false;
|
|
int engine_friendly_stage_ = 0, engine_friendly_month_ = 0;
|
|
float engine_friendly_scroll_ = 0;
|
|
Json engine_friendly_read_;
|
|
std::vector<std::pair<std::string,std::string>> engine_friendly_picker_items(const std::string &) const;
|
|
void engine_friendly_filter(const std::string &, const std::string &);
|
|
void engine_friendly_sync();
|
|
std::string engine_friendlies_view();
|
|
std::string engine_national_friendly_view(const Json &, const Json &);
|
|
std::string engine_friendly_dialog();
|
|
std::string engine_friendly_team(const Json &, double);
|
|
std::string engine_friendly_payer(const Json &) const;
|
|
bool engine_friendly_action(const std::string &, Rml::Element *);
|
|
bool engine_friendly_event(Rml::Event &);
|
|
bool engine_commerce_action(const std::string &, Rml::Element *);
|
|
bool engine_bank_action(const std::string &, Rml::Element *);
|
|
std::string engine_credit_view();
|
|
void engine_finance_submit(const Json &);
|
|
void engine_ticket_bind();
|
|
void engine_start(std::string, std::function<EngineReply()>, bool mutating = false);
|
|
void engine_poll();
|
|
void engine_render();
|
|
void engine_frame();
|
|
void engine_event(Rml::Event &);
|
|
void engine_save();
|
|
void engine_quit();
|
|
Json engine_camp_view() const;
|
|
std::string engine_lineup_controls();
|
|
std::string engine_player_profile(const Json &);
|
|
bool engine_lineup_action(const std::string &, const std::string &, Rml::Element *);
|
|
void engine_sports_reset();
|
|
bool engine_sports_dirty() const;
|
|
void engine_sports_update();
|
|
std::string engine_sports_footer();
|
|
bool engine_sports_action(const std::string &, const std::string &, Rml::Element *);
|
|
bool engine_sports_event(Rml::Event &);
|
|
Json engine_snapshot() const;
|