LeviLamina
Loading...
Searching...
No Matches
EditorPlayerCommon.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/IEditorPlayer.h"
7#include "mc/deps/core/utility/optional_ref.h"
8#include "mc/deps/core/utility/pub_sub/Publisher.h"
9#include "mc/deps/scripting/runtime/Result.h"
10#include "mc/editor/serviceproviders/EditorPlayerServiceProvider.h"
11#include "mc/editor/services/EditorServiceList.h"
12#include "mc/world/events/EventResult.h"
13#include "mc/world/events/PlayerEventListener.h"
14
15// auto generated forward declare list
16// clang-format off
17class Player;
19namespace Bedrock::PubSub { class Subscription; }
20namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
21namespace Editor { class ServiceProviderCollection; }
22namespace Scripting { struct Error; }
23// clang-format on
24
25namespace Editor {
26
31public:
32 // EditorPlayerCommon inner types define
33 enum class InitializationState : int {
34 Uninitialized = 0,
35 Initializing = 1,
36 Initialized = 2,
37 Readying = 3,
38 Ready = 4,
39 Deinitializing = 5,
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 EditorPlayerCommon& operator=(EditorPlayerCommon const&);
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 // vIndex: 0
61 virtual ~EditorPlayerCommon() /*override*/;
62
63 // vIndex: 1
64 virtual ::Scripting::Result<void> init() /*override*/;
65
66 // vIndex: 2
67 virtual ::Scripting::Result<void> ready() /*override*/;
68
69 // vIndex: 3
70 virtual ::Scripting::Result<void> quit() /*override*/;
71
72 // vIndex: 4
73 virtual ::Editor::ServiceProviderCollection& getServiceProviders() /*override*/;
74
75 // vIndex: 2
76 virtual ::Scripting::Result<::Bedrock::PubSub::Subscription, ::Scripting::Error>
77 registerTickSubscriber(::std::function<void(::Editor::ServiceProviderCollection&)> fnTick) /*override*/;
78
79 // vIndex: 1
80 virtual ::Player* getPlayer() const /*override*/;
81
82 // vIndex: 6
83 virtual ::optional_ref<::PlayerEventCoordinator> getPlayerEventCoordinator() = 0;
84
85 // vIndex: 19
86 virtual ::EventResult onPlayerTick(::Player& player) /*override*/;
87
88 // vIndex: 5
89 virtual void _onTick() /*override*/;
90 // NOLINTEND
91
92public:
93 // member functions
94 // NOLINTBEGIN
95 MCAPI explicit EditorPlayerCommon(::Player& player);
96 // NOLINTEND
97
98public:
99 // constructor thunks
100 // NOLINTBEGIN
101 MCAPI void* $ctor(::Player& player);
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI ::Scripting::Result<void> $init();
114
115 MCAPI ::Scripting::Result<void> $ready();
116
117 MCAPI ::Scripting::Result<void> $quit();
118
119 MCFOLD ::Editor::ServiceProviderCollection& $getServiceProviders();
120
121 MCAPI ::Scripting::Result<::Bedrock::PubSub::Subscription, ::Scripting::Error>
122 $registerTickSubscriber(::std::function<void(::Editor::ServiceProviderCollection&)> fnTick);
123
124 MCAPI ::Player* $getPlayer() const;
125
126 MCAPI ::EventResult $onPlayerTick(::Player& player);
127
128 MCAPI void $_onTick();
129 // NOLINTEND
130
131public:
132 // vftables
133 // NOLINTBEGIN
134 MCAPI static void** $vftableForEditorServiceList();
135
136 MCAPI static void** $vftableForEditorPlayerServiceProvider();
137
138 MCAPI static void** $vftableForPlayerEventListener();
139
140 MCAPI static void** $vftableForIEditorPlayer();
141 // NOLINTEND
142};
143
144} // namespace Editor
Definition EditorPlayerCommon.h:30
Definition EditorPlayerServiceProvider.h:18
Definition IEditorPlayer.h:16
Definition ServiceProviderCollection.h:7
Definition EditorServiceList.h:17
Definition PlayerEventCoordinator.h:20
Definition PlayerEventListener.h:29
Definition Player.h:119
Definition Alias.h:14