LeviLamina
Loading...
Searching...
No Matches
GameModuleClient.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/application/app_extensions/AppExtensionsNonOwner.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8
9// auto generated forward declare list
10// clang-format off
12class BaseGameVersion;
14class CommandRegistry;
15class Experiments;
17class IClientInstance;
19class ItemRegistryRef;
20class Level;
24// clang-format on
25
27public:
28 // GameModuleClient inner types define
29 enum class ResourceLoadingPhase : int {
30 AppStartup = 0,
31 Frontend = 1,
32 InGame = 2,
33 };
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~GameModuleClient() /*override*/ = default;
39
40 virtual void init(::IClientInstance& client, ::Bedrock::NotNullNonOwnerPtr<::Level> const& level) = 0;
41
42 virtual void configureLevel(
43 ::IClientInstance& client,
44 ::Bedrock::NotNullNonOwnerPtr<::MultiPlayerLevel> const& level,
45 ::Experiments const& experiments,
46 ::BaseGameVersion const& baseGameVersion
47 ) = 0;
48
49 virtual void deconfigureLevel(::IClientInstance& client) = 0;
50
51 virtual void initializeResourceStack(
52 ::Experiments const* experiments,
53 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& repo,
54 ::ResourcePackStack& stack,
55 ::BaseGameVersion const& baseGameVersion,
56 ::GameModuleClient::ResourceLoadingPhase loadingPhase,
57 bool includeEditorPacks
58 ) = 0;
59
60 virtual void configureDocumentation(::GameModuleDocumentation&, ::ItemRegistryRef const) = 0;
61
62 virtual void tick() = 0;
63
64 virtual void setupStandardCommands(::CommandRegistry& commandRegistry) = 0;
65
66 virtual void setupStartMenuScreenCommands(::CommandRegistry&) = 0;
67
68 virtual void setupUI() = 0;
69
70 virtual void registerActorRenderers(::Bedrock::NotNullNonOwnerPtr<::IClientInstance> const& client) = 0;
71
72 virtual ::std::unique_ptr<::ClientInputMappingFactory> createInputMappingFactory(::IClientInstance& client) = 0;
73
74 virtual ::std::shared_ptr<void> registerVanillaGoalsForUpgrader(
75 ::Experiments const& experiments,
76 ::BaseGameVersion const& baseGameVersion,
77 ::ItemRegistryRef const itemRegistryRef,
78 ::ActorMigratedDefinitionFactory& migratedFactory
79 ) const = 0;
80
81 virtual ::ServerboundDiagnosticsPacket createServerboundDiagnosticsPacket() = 0;
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI GameModuleClient();
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition ActorMigratedDefinitionFactory.h:42
Definition AppExtensionsNonOwner.h:16
Definition BaseGameVersion.h:13
Definition ClientInputMappingFactory.h:5
Definition CommandRegistry.h:51
Definition Experiments.h:14
Definition GameModuleClient.h:5
static MCAPI void ** $vftable()
Definition GameModuleDocumentation.h:5
Definition IClientInstance.h:5
Definition IResourcePackRepository.h:34
Definition ItemRegistryRef.h:42
Definition Level.h:254
Definition MultiPlayerLevel.h:5
Definition ResourcePackStack.h:24
Definition ServerboundDiagnosticsPacket.h:19