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_deprecated.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; }
22// clang-format on
23
24namespace Editor {
25
30public:
31 // EditorPlayerCommon inner types define
32 enum class InitializationState : int {
33 Uninitialized = 0,
34 Initializing = 1,
35 Initialized = 2,
36 Readying = 3,
37 Ready = 4,
38 Deinitializing = 5,
39 };
40
41public:
42 // member variables
43 // NOLINTBEGIN
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 EditorPlayerCommon& operator=(EditorPlayerCommon const&);
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 // vIndex: 0
60 virtual ~EditorPlayerCommon() /*override*/;
61
62 // vIndex: 1
63 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
64
65 // vIndex: 2
66 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
67
68 // vIndex: 3
69 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
70
71 // vIndex: 4
72 virtual ::Editor::ServiceProviderCollection& getServiceProviders() /*override*/;
73
74 // vIndex: 2
75 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
76 registerTickSubscriber(::std::function<void(::Editor::ServiceProviderCollection&)> fnTick) /*override*/;
77
78 // vIndex: 1
79 virtual ::Player* getPlayer() const /*override*/;
80
81 // vIndex: 6
82 virtual ::optional_ref<::PlayerEventCoordinator> getPlayerEventCoordinator() = 0;
83
84 // vIndex: 19
85 virtual ::EventResult onPlayerTick(::Player& player) /*override*/;
86
87 // vIndex: 5
88 virtual void _onTick() /*override*/;
89 // NOLINTEND
90
91public:
92 // member functions
93 // NOLINTBEGIN
94 MCNAPI explicit EditorPlayerCommon(::Player& player);
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCNAPI void* $ctor(::Player& player);
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCNAPI void $dtor();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCNAPI ::Scripting::Result_deprecated<void> $init();
113
114 MCNAPI ::Scripting::Result_deprecated<void> $ready();
115
116 MCNAPI ::Scripting::Result_deprecated<void> $quit();
117
118 MCNAPI ::Editor::ServiceProviderCollection& $getServiceProviders();
119
120 MCNAPI ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
122
123 MCNAPI ::Player* $getPlayer() const;
124
125 MCNAPI ::EventResult $onPlayerTick(::Player& player);
126
127 MCNAPI void $_onTick();
128 // NOLINTEND
129
130public:
131 // vftables
132 // NOLINTBEGIN
133 MCNAPI static void** $vftableForEditorServiceList();
134
136
137 MCNAPI static void** $vftableForPlayerEventListener();
138
139 MCNAPI static void** $vftableForIEditorPlayer();
140 // NOLINTEND
141};
142
143} // namespace Editor
Definition EditorPlayerCommon.h:29
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI ::Scripting::Result_deprecated< void > $init()
static MCAPI void ** $vftableForPlayerEventListener()
MCAPI void * $ctor(::Player &player)
static MCAPI void ** $vftableForEditorServiceList()
static MCAPI void ** $vftableForEditorPlayerServiceProvider()
MCAPI::EventResult $onPlayerTick(::Player &player)
MCAPI ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription > $registerTickSubscriber(::std::function< void(::Editor::ServiceProviderCollection &)> fnTick)
MCAPI EditorPlayerCommon(::Player &player)
MCAPI ::Scripting::Result_deprecated< void > $ready()
MCAPI::Editor::ServiceProviderCollection & $getServiceProviders()
MCAPI::Player * $getPlayer() const
static MCAPI void ** $vftableForIEditorPlayer()
Definition EditorPlayerServiceProvider.h:17
Definition IEditorPlayer.h:16
Definition ServiceProviderCollection.h:7
Definition EditorServiceList.h:16
Definition PlayerEventCoordinator.h:20
Definition PlayerEventListener.h:29
Definition Player.h:119
Definition Alias.h:14