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 ::std::string const& getPlayerSaveId() const = 0;
54
55 // vIndex: 9
56 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
57 listenForPersistDataChanged(::std::function<void(::Editor::Persistence::PersistentData const&)>) = 0;
58
59 // vIndex: 10
60 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription> listenForPersistDataRemoved(
61 ::std::function<void(::HashedString const&, ::Editor::Services::PersistentDataType)>
62 ) = 0;
63
64 // vIndex: 11
65 virtual ::std::unique_ptr<::cereal::ReflectionCtx>& getCerealContext() = 0;
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71
72 // NOLINTEND
73};
74
75} // namespace Editor::Services
Definition EditorPersistenceServiceProvider.h:19
Definition HashedString.h:5
Definition PersistentData.h:7