LeviLamina
Loading...
Searching...
No Matches
DataStoreServiceProvider.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/datastore/EventType.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12namespace Bedrock::PubSub { class Subscription; }
13namespace Editor::DataStore { struct PayloadDescription; }
14namespace Json { class Value; }
15// clang-format on
16
17namespace Editor::Services {
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual ~DataStoreServiceProvider() = default;
24
25 virtual ::Scripting::Result_deprecated<void> dispatchEvent(
26 ::HashedString const&,
27 ::Editor::DataStore::EventType,
28 ::Json::Value const&,
30 ) = 0;
31
32 virtual ::Json::Value getPayload(::HashedString const&, ::Editor::DataStore::PayloadDescription const&) const = 0;
33
34 virtual ::Bedrock::PubSub::Subscription listenForEvent(
35 ::std::function<void(
36 ::HashedString const&,
37 ::Editor::DataStore::EventType,
38 ::Json::Value const&,
40 )>
41 ) = 0;
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47
48 // NOLINTEND
49};
50
51} // namespace Editor::Services
Definition Subscription.h:10
Definition DataStoreServiceProvider.h:19
Definition HashedString.h:5
Definition Value.h:16
Definition PayloadDescription.h:7