LeviLamina
Loading...
Searching...
No Matches
EditorPersistenceServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/editor/services/persistence/PersistentDataType.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13namespace Bedrock::PubSub { class Subscription; }
14namespace Editor::Persistence { struct PersistentData; }
15namespace Scripting { struct Error; }
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19namespace Editor::Services {
20
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 0
26 virtual ~EditorPersistenceServiceProvider() = default;
27
28 // vIndex: 1
29 virtual ::Scripting::Result<void> addOrUpdatePersistData(::Editor::Persistence::PersistentData const&) = 0;
30
31 // vIndex: 2
32 virtual ::Scripting::Result<void> addPersistData(::Editor::Persistence::PersistentData const&) = 0;
33
34 // vIndex: 3
35 virtual ::Scripting::Result<void> updatePersistData(::Editor::Persistence::PersistentData const&) = 0;
36
37 // vIndex: 4
38 virtual ::Scripting::Result<void>
39 removePersistData(::HashedString const&, ::Editor::Services::PersistentDataType const) = 0;
40
41 // vIndex: 5
42 virtual ::Scripting::Result<::std::string, ::Scripting::Error>
43 getPersistData(::HashedString const&, ::Editor::Services::PersistentDataType const) const = 0;
44
45 // vIndex: 6
46 virtual ::Scripting::Result<::std::vector<::HashedString>, ::Scripting::Error>
47 getKeysStartWith(::std::string const, ::Editor::Services::PersistentDataType const) const = 0;
48
49 // vIndex: 7
50 virtual ::Scripting::Result<bool, ::Scripting::Error>
51 hasData(::HashedString const&, ::Editor::Services::PersistentDataType const) const = 0;
52
53 // vIndex: 8
54 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
55 listenForPersistDataChanged(::std::function<void(::Editor::Persistence::PersistentData const&)>) = 0;
56
57 // vIndex: 9
58 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
59 listenForPersistDataRemoved(::std::function<
60 void(::HashedString const&, ::Editor::Services::PersistentDataType)>) = 0;
61
62 // vIndex: 10
63 virtual ::std::unique_ptr<::cereal::ReflectionCtx>& getCerealContext() = 0;
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75
76 // NOLINTEND
77};
78
79} // namespace Editor::Services
Definition EditorPersistenceServiceProvider.h:21
Definition HashedString.h:5
Definition PersistentData.h:7
Definition Error.h:7