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