mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-12-05 03:33:27 +01:00
remove clutter from organizer scene service
This commit is contained in:
parent
1248957a18
commit
9e9b644856
@ -38,16 +38,9 @@ namespace MM::Services {
|
||||
|
||||
bool OrganizerSceneService::enable(Engine& engine, std::vector<UpdateStrategies::TaskInfo>& task_array) {
|
||||
// add tasks
|
||||
task_array.push_back(
|
||||
UpdateStrategies::TaskInfo{"OrganizerSceneService::scene_update"}
|
||||
.fn([this](Engine& e) { sceneUpdate(e); })
|
||||
);
|
||||
task_array.push_back(
|
||||
UpdateStrategies::TaskInfo{"OrganizerSceneService::scene_tick"}
|
||||
.fn([this](Engine& e) { sceneFixedUpdate(e); })
|
||||
|
||||
// bc it renders imgui, but this is not "hard"
|
||||
.succeed("OrganizerSceneService::scene_update")
|
||||
);
|
||||
task_array.push_back(
|
||||
UpdateStrategies::TaskInfo{"OrganizerSceneService::scene_changer"}
|
||||
@ -110,21 +103,6 @@ void OrganizerSceneService::changeSceneFixedUpdate(Engine& engine) {
|
||||
}
|
||||
}
|
||||
|
||||
void OrganizerSceneService::sceneUpdate(Engine&) {
|
||||
ZoneScoped;
|
||||
|
||||
//if (ImGui::Begin("OrganizerScene")) {
|
||||
//ImGui::SliderFloat("time_factor", &delta_factor, 0.f, 10.f, "%.5f", ImGuiSliderFlags_Logarithmic);
|
||||
//}
|
||||
//ImGui::End();
|
||||
|
||||
//for (auto&& v : _scene->ctx<std::vector<entt::organizer::vertex>>()) {
|
||||
//v.callback()(v.data(), *_scene);
|
||||
//}
|
||||
|
||||
//TracyPlot("MM::Services::OrganizerSceneService::_scene.alive", (int64_t)_scene->alive());
|
||||
}
|
||||
|
||||
void OrganizerSceneService::changeScene(std::unique_ptr<Scene>&& new_scene) {
|
||||
if (_next_scene) {
|
||||
LOG_OSS("warn: already next scene enqueued! overwriting...");
|
||||
|
@ -42,7 +42,6 @@ namespace MM::Services {
|
||||
void sceneFixedUpdate(Engine& engine);
|
||||
void changeSceneFixedUpdate(Engine& engine);
|
||||
|
||||
void sceneUpdate(Engine& engine);
|
||||
void updateOrganizerVertices(Scene& scene);
|
||||
|
||||
void resetTime(void);
|
||||
|
Loading…
Reference in New Issue
Block a user