LeviLamina
Loading...
Searching...
No Matches
GameModuleServer.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
11class BaseGameVersion;
12class CommandRegistry;
13class Experiments;
16class ItemRegistryRef;
17class Level;
18class Player;
21class ServerInstance;
25// clang-format on
26
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~GameModuleServer() /*override*/ = default;
32
33 virtual void init(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Level> const& level) = 0;
34
35 virtual void initializeBehaviorStack(
36 ::Experiments const& experiments,
37 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& repo,
39 ::BaseGameVersion const& baseGameVersion,
40 bool includeEditorPacks
41 ) = 0;
42
43 virtual void configureLevel(
44 ::Bedrock::NotNullNonOwnerPtr<::Level>& level,
45 ::Experiments const& experiments,
46 ::ResourcePackManager& resourcePackManager,
47 ::BaseGameVersion const& baseGameVersion,
48 ::ServerScriptManager const* scriptManager,
49 ::std::optional<::std::reference_wrapper<
50 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>>>
51 biomeIdToResolvedData
52 ) = 0;
53
54 virtual void configureNewPlayer(::Player&) = 0;
55
56 virtual void configureDocumentation(::IGameModuleDocumentation&, ::ItemRegistryRef const) = 0;
57
58 virtual void tick() = 0;
59
60 virtual void setupCommands(::CommandRegistry& commandRegistry) = 0;
61
62 virtual void configureServerNetworkHandler(
63 ::ServerInstance& server,
64 ::Bedrock::NotNullNonOwnerPtr<::ServerNetworkHandler> handler
65 ) = 0;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCNAPI void* $ctor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
Definition AppExtensionsNonOwner.h:16
Definition BaseGameVersion.h:13
Definition CommandRegistry.h:51
Definition Experiments.h:14
MCAPI GameModuleServer()
MCAPI void * $ctor()
static MCAPI void ** $vftable()
Definition IGameModuleDocumentation.h:5
Definition IResourcePackRepository.h:34
Definition ItemRegistryRef.h:42
Definition Level.h:255
Definition Player.h:137
Definition ResourcePackManager.h:35
Definition ResourcePackStack.h:24
Definition ServerInstance.h:64
Definition ServerNetworkHandler.h:184
Definition ServerScriptManager.h:77
Definition BiomeJsonDocumentGlueResolvedBiomeData.h:10