LeviLamina
Loading...
Searching...
No Matches
DataStoreUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Editor::Services { class DataStoreServiceProvider; }
11// clang-format on
12
13namespace Editor {
14
16public:
17 // static functions
18 // NOLINTBEGIN
19 MCNAPI static ::std::optional<::std::string>
21
22 MCNAPI static ::std::optional<::std::vector<::std::string>>
23 getSortOrder(::Editor::Services::DataStoreServiceProvider& dataStore, ::std::string const& groupId);
24
25 MCNAPI static ::Scripting::Result_deprecated<void> updateSelectedModalTool(
27 ::std::optional<::std::string> const& newToolId
28 );
29
30 MCNAPI static ::Scripting::Result_deprecated<void> updateSortOrder(
32 ::std::string const& groupId,
33 ::std::optional<::std::vector<::std::string>> const& sortOrder
34 );
35 // NOLINTEND
36};
37
38} // namespace Editor
Definition DataStoreUtils.h:15
static MCAPI ::std::optional<::std::string > getSelectedModalTool(::Editor::Services::DataStoreServiceProvider &dataStore)
static MCAPI ::std::optional<::std::vector<::std::string > > getSortOrder(::Editor::Services::DataStoreServiceProvider &dataStore, ::std::string const &groupId)
static MCAPI ::Scripting::Result_deprecated< void > updateSortOrder(::Editor::Services::DataStoreServiceProvider &dataStore, ::std::string const &groupId, ::std::optional<::std::vector<::std::string > > const &sortOrder)
static MCAPI ::Scripting::Result_deprecated< void > updateSelectedModalTool(::Editor::Services::DataStoreServiceProvider &dataStore, ::std::optional<::std::string > const &newToolId)
Definition DataStoreServiceProvider.h:20