Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
EditorHotbarCollectionServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12namespace Bedrock::PubSub { class Subscription; }
13namespace Editor { class HotbarCollectionBase; }
14namespace Editor { struct EditorHotbarCollectionEventActiveHotbarChanged; }
15namespace Editor { struct EditorHotbarCollectionEventElementUpdated; }
18namespace Editor { struct EditorHotbarCollectionEventHotbarRemoved; }
19namespace Editor { struct EditorHotbarCollectionEventHotbarUpdated; }
20namespace Editor { struct EditorHotbarCollectionEventSelectedIndexChanged; }
21namespace Editor { struct HotbarCollectionSnapshot; }
22// clang-format on
23
24namespace Editor::Services {
25
27public:
28 // virtual functions
29 // NOLINTBEGIN
31
32 virtual ::Scripting::Result_deprecated<void> addOrReplaceCollection(::Editor::HotbarCollectionSnapshot const&) = 0;
33
34 virtual ::Scripting::Result_deprecated<void> removeCollection(::HashedString const&) = 0;
35
36 virtual ::Scripting::Result_deprecated<void> setActiveCollection(::HashedString const&) = 0;
37
38 virtual bool hasCollectionWithId(::HashedString const&) const = 0;
39
40 virtual ::WeakRef<::Editor::HotbarCollectionBase> getCollection(::HashedString const&) const = 0;
41
42 virtual ::std::vector<::HashedString> getAllCollectionIds() const = 0;
43
44 virtual ::WeakRef<::Editor::HotbarCollectionBase> getActiveCollection() const = 0;
45
46 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription> registerHotbarCollectionEventListener(
47 ::HashedString const&,
48 ::std::function<void(::std::variant<
56 ) = 0;
57 // NOLINTEND
58};
59
60} // namespace Editor::Services
Definition Subscription.h:10
Definition HotbarCollectionBase.h:36
Definition EditorHotbarCollectionServiceProvider.h:26
Definition HashedString.h:5
Definition EditorHotbarCollectionEventActiveHotbarChanged.h:7
Definition EditorHotbarCollectionEventElementUpdated.h:7
Definition EditorHotbarCollectionEventHotbarDisplayNameChanged.h:7
Definition EditorHotbarCollectionEventHotbarElementDisplayNameChanged.h:7
Definition EditorHotbarCollectionEventHotbarRemoved.h:7
Definition EditorHotbarCollectionEventHotbarUpdated.h:7
Definition EditorHotbarCollectionEventSelectedIndexChanged.h:7
Definition HotbarCollectionSnapshot.h:12