mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
Add files via upload
This commit is contained in:
parent
259b42cfbd
commit
59037b66ec
@ -1224,6 +1224,14 @@ void SceneV1AppMode::SetReplaySpeedExponent(int val) {
|
|||||||
replay_speed_mult_ = powf(2.0f, static_cast<float>(replay_speed_exponent_));
|
replay_speed_mult_ = powf(2.0f, static_cast<float>(replay_speed_exponent_));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SceneV1AppMode::PauseReplay() {
|
||||||
|
replay_paused_ = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SceneV1AppMode::ResumeReplay() {
|
||||||
|
replay_paused_ = false;
|
||||||
|
}
|
||||||
|
|
||||||
void SceneV1AppMode::SetDebugSpeedExponent(int val) {
|
void SceneV1AppMode::SetDebugSpeedExponent(int val) {
|
||||||
debug_speed_exponent_ = val;
|
debug_speed_exponent_ = val;
|
||||||
debug_speed_mult_ = powf(2.0f, static_cast<float>(debug_speed_exponent_));
|
debug_speed_mult_ = powf(2.0f, static_cast<float>(debug_speed_exponent_));
|
||||||
@ -1479,4 +1487,4 @@ void SceneV1AppMode::RunMainMenu() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ballistica::scene_v1
|
} // namespace ballistica::scene_v1
|
||||||
@ -96,11 +96,14 @@ class SceneV1AppMode : public base::AppMode {
|
|||||||
auto debug_speed_mult() const -> float { return debug_speed_mult_; }
|
auto debug_speed_mult() const -> float { return debug_speed_mult_; }
|
||||||
auto replay_speed_exponent() const -> int { return replay_speed_exponent_; }
|
auto replay_speed_exponent() const -> int { return replay_speed_exponent_; }
|
||||||
auto replay_speed_mult() const -> float { return replay_speed_mult_; }
|
auto replay_speed_mult() const -> float { return replay_speed_mult_; }
|
||||||
|
auto is_replay_paused() const -> bool { return replay_paused_; }
|
||||||
void OnScreenSizeChange() override;
|
void OnScreenSizeChange() override;
|
||||||
auto kick_idle_players() const -> bool { return kick_idle_players_; }
|
auto kick_idle_players() const -> bool { return kick_idle_players_; }
|
||||||
void LanguageChanged() override;
|
void LanguageChanged() override;
|
||||||
void SetDebugSpeedExponent(int val);
|
void SetDebugSpeedExponent(int val);
|
||||||
void SetReplaySpeedExponent(int val);
|
void SetReplaySpeedExponent(int val);
|
||||||
|
void PauseReplay();
|
||||||
|
void ResumeReplay();
|
||||||
void set_admin_public_ids(const std::set<std::string>& ids) {
|
void set_admin_public_ids(const std::set<std::string>& ids) {
|
||||||
admin_public_ids_ = ids;
|
admin_public_ids_ = ids;
|
||||||
}
|
}
|
||||||
@ -223,6 +226,7 @@ class SceneV1AppMode : public base::AppMode {
|
|||||||
bool game_roster_dirty_{};
|
bool game_roster_dirty_{};
|
||||||
bool kick_vote_in_progress_{};
|
bool kick_vote_in_progress_{};
|
||||||
bool kick_voting_enabled_{true};
|
bool kick_voting_enabled_{true};
|
||||||
|
bool replay_paused_{false};
|
||||||
|
|
||||||
cJSON* game_roster_{};
|
cJSON* game_roster_{};
|
||||||
millisecs_t last_game_roster_send_time_{};
|
millisecs_t last_game_roster_send_time_{};
|
||||||
@ -264,4 +268,4 @@ class SceneV1AppMode : public base::AppMode {
|
|||||||
|
|
||||||
} // namespace ballistica::scene_v1
|
} // namespace ballistica::scene_v1
|
||||||
|
|
||||||
#endif // BALLISTICA_SCENE_V1_SUPPORT_SCENE_V1_APP_MODE_H_
|
#endif // BALLISTICA_SCENE_V1_SUPPORT_SCENE_V1_APP_MODE_H_
|
||||||
Loading…
x
Reference in New Issue
Block a user