LeviLamina
Loading...
Searching...
No Matches
EditorSettingsServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/ThemeSettingsColorKey.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::PubSub { class Subscription; }
12namespace Editor::Settings { class Graphics; }
13namespace Editor::Settings { class Speed; }
14namespace Editor::Settings { class Theme; }
15namespace Editor::Settings { struct GraphicsProps; }
16namespace Editor::Settings { struct SpeedProps; }
17namespace Editor::Settings { struct ThemeProps; }
18namespace mce { class Color; }
19// clang-format on
20
21namespace Editor::Services {
22
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 0
28 virtual ~EditorSettingsServiceProvider() = default;
29
30 // vIndex: 2
31 virtual ::Editor::Settings::Graphics& getGraphicsSettings() = 0;
32
33 // vIndex: 1
34 virtual ::Editor::Settings::Graphics const& getGraphicsSettings() const = 0;
35
36 // vIndex: 3
37 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
38 listenForGraphicsSettingsChanged(::std::function<void(::Editor::Settings::GraphicsProps const&)>) = 0;
39
40 // vIndex: 5
41 virtual ::Editor::Settings::Speed& getSpeedSettings() = 0;
42
43 // vIndex: 4
44 virtual ::Editor::Settings::Speed const& getSpeedSettings() const = 0;
45
46 // vIndex: 6
47 virtual ::Bedrock::PubSub::Subscription
48 listenForSpeedSettingsChanged(::std::function<void(::Editor::Settings::SpeedProps const&)>) = 0;
49
50 // vIndex: 8
51 virtual ::Editor::Settings::Theme& getThemeSettings() = 0;
52
53 // vIndex: 7
54 virtual ::Editor::Settings::Theme const& getThemeSettings() const = 0;
55
56 // vIndex: 9
57 virtual ::Bedrock::PubSub::Subscription
58 listenForThemeSettingsChanged(::std::function<void(::Editor::Settings::ThemeProps const&)>) = 0;
59
60 // vIndex: 10
61 virtual ::Bedrock::PubSub::Subscription
62 listenForCurrentThemeChanged(::std::function<void(::std::string const&)>) = 0;
63
64 // vIndex: 11
65 virtual ::Bedrock::PubSub::Subscription
66 listenForNewThemeCreated(::std::function<
67 void(::std::string const&, ::std::optional<::std::string> const&, ::std::optional<::std::string> const&)>) = 0;
68
69 // vIndex: 12
70 virtual ::Bedrock::PubSub::Subscription
71 listenForThemeColorUpdated(::std::function<
72 void(::std::string const&, ::Editor::Settings::ThemeSettingsColorKey, ::mce::Color const&)>) = 0;
73
74 // vIndex: 13
75 virtual ::Bedrock::PubSub::Subscription listenForThemeDeleted(::std::function<void(::std::string const&)>) = 0;
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87
88 // NOLINTEND
89};
90
91} // namespace Editor::Services
Definition EditorSettingsServiceProvider.h:23
Definition Color.h:13
Definition GraphicsProps.h:7
Definition SpeedProps.h:7
Definition ThemeProps.h:13