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& dataTag,
27 ::Editor::DataStore::EventType eventType,
28 ::Json::Value const& payload,
30 ) = 0;
31
32 virtual ::Json::Value
33 getPayload(::HashedString const& dataTag, ::Editor::DataStore::PayloadDescription const& desc) const = 0;
34
35 virtual ::Bedrock::PubSub::Subscription listenForEvent(
36 ::std::function<void(
37 ::HashedString const&,
38 ::Editor::DataStore::EventType,
39 ::Json::Value const&,
41 )> callback
42 ) = 0;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48
49 // NOLINTEND
50};
51
52} // namespace Editor::Services
Definition Subscription.h:10
Definition DataStoreServiceProvider.h:19
Definition HashedString.h:5
Definition Value.h:16
Definition PayloadDescription.h:7