Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerHotbarCollectionService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
7#include "mc/editor/EditorHotbarCollectionService.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
13namespace Editor { struct EditorHotbarCollectionEventActiveHotbarChanged; }
14namespace Editor { struct EditorHotbarCollectionEventCollectionRemoved; }
15namespace Editor { struct EditorHotbarCollectionEventCollectionUpdated; }
16namespace Editor { struct EditorHotbarCollectionEventElementUpdated; }
19namespace Editor { struct EditorHotbarCollectionEventHotbarRemoved; }
20namespace Editor { struct EditorHotbarCollectionEventHotbarUpdated; }
21namespace Editor { struct EditorHotbarCollectionEventSelectedIndexChanged; }
22namespace Editor { struct HotbarCollectionSnapshot; }
23namespace Editor::Network { class HotbarCollectionActiveCollectionChangedPayload; }
24namespace Editor::Network { class HotbarCollectionChangedPayload; }
25namespace Editor::Network { class HotbarCollectionRemovedPayload; }
26// clang-format on
27
28namespace Editor::Services {
29
30class ServerHotbarCollectionService : public ::Editor::Services::EditorHotbarCollectionService {
31public:
32 // member variables
33 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 ServerHotbarCollectionService& operator=(ServerHotbarCollectionService const&);
40 ServerHotbarCollectionService(ServerHotbarCollectionService const&);
41 ServerHotbarCollectionService();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ~ServerHotbarCollectionService() /*override*/ = default;
47
48 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
49
50 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
51
52 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
53
54 virtual ::std::string_view getServiceName() const /*override*/;
55
56 virtual ::Scripting::Result_deprecated<void>
57 addOrReplaceCollection(::Editor::HotbarCollectionSnapshot const&) /*override*/;
58
59 virtual ::Scripting::Result_deprecated<void> removeCollection(::HashedString const&) /*override*/;
60
61 virtual ::Scripting::Result_deprecated<void> setActiveCollection(::HashedString const&) /*override*/;
62
63 virtual bool isServerSide() const /*override*/;
64
65 virtual void
66 _handleHotbarCollectionChangedPayload(::Editor::Network::HotbarCollectionChangedPayload const&) /*override*/;
67
68 virtual void
69 _handleHotbarCollectionRemovedPayload(::Editor::Network::HotbarCollectionRemovedPayload const&) /*override*/;
70
71 virtual void _handleHotbarCollectionActiveCollectionChangedPayload(
73 ) /*override*/;
74
75 virtual void _handleHotbarCollectionServiceEvent(
76 ::std::variant<
80 ) /*override*/;
81
82 virtual void _handleHotbarCollectionEvent(
83 ::std::variant<
91 ) /*override*/;
92 // NOLINTEND
93};
94
95} // namespace Editor::Services
Definition HotbarCollectionActiveCollectionChangedPayload.h:16
Definition HotbarCollectionChangedPayload.h:16
Definition HotbarCollectionRemovedPayload.h:16
Definition EditorHotbarCollectionService.h:36
Definition HashedString.h:5
Definition EditorHotbarCollectionEventActiveCollectionChanged.h:7
Definition EditorHotbarCollectionEventActiveHotbarChanged.h:7
Definition EditorHotbarCollectionEventCollectionRemoved.h:7
Definition EditorHotbarCollectionEventCollectionUpdated.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
Definition Alias.h:14