Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelArguments.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/game_refs/OwnerPtr.h"
9#include "mc/deps/game_refs/StackRefResult.h"
10#include "mc/deps/game_refs/WeakRef.h"
11#include "mc/platform/brstd/function_ref.h"
12#include "mc/world/gamemode/entity_attack/ValidationSettings.h"
13#include "mc/world/item/registry/ItemRegistryRef.h"
14#include "mc/world/level/ticking/TickingAreaLimitPolicy.h"
15
16// auto generated forward declare list
17// clang-format off
19class BehaviorFactory;
21class EntityContext;
24class ILevel;
27class LevelData;
32class PacketSender;
34class PauseManager;
35class Scheduler;
38namespace VoxelShapes { class VoxelShapeRegistry; }
39namespace br::worldgen { class StructureSetRegistry; }
40// clang-format on
41
42struct LevelArguments {
43public:
44 // member variables
45 // NOLINTBEGIN
46 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::PacketSender>> mPacketSender;
47 ::ll::TypedStorage<
48 8,
49 16,
51 ::std::unique_ptr<::LevelSoundManager>(::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator>)>>
52 mCreateLevelSoundManager;
53 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
54 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::StructureManager>> mStructureManager;
55 ::ll::TypedStorage<8, 8, ::Scheduler&> mCallbackContext;
56 ::ll::TypedStorage<8, 8, ::Bedrock::NotNullNonOwnerPtr<::IEntityRegistryOwner> const&> mEntityRegistryOwner;
57 ::ll::TypedStorage<8, 24, ::WeakRef<::EntityContext> const> mLevelEntity;
58 ::ll::TypedStorage<1, 1, bool> mClientSideChunkGenerationEnabled;
59 ::ll::TypedStorage<1, 1, bool> mBlockNetworkIdsAreHashes;
60 ::ll::TypedStorage<4, 8, ::EntityAttack::ValidationSettings> mEntityAttackValidationSettings;
61 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::BlockTypeRegistry>> mBlockRegistry;
62 ::ll::TypedStorage<8, 16, ::ItemRegistryRef const> mItemRegistry;
63 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LevelStorageManager>> mLevelStorageManager;
64 ::ll::TypedStorage<4, 24, ::TickingAreaLimitPolicy> mTickingAreaLimitPolicy;
65 ::ll::TypedStorage<8, 16, ::brstd::function_ref<::std::unique_ptr<::LevelCrashDumpManager>()>>
66 mCreateLevelCrashDumpManager;
67 ::ll::
68 TypedStorage<8, 16, ::brstd::function_ref<::OwnerPtr<::EntitySystemsManager>(::StackRefResult<::PauseManager>)>>
69 mCreateEntitySystemsManager;
70 ::ll::
71 TypedStorage<8, 16, ::brstd::function_ref<::std::unique_ptr<::AutomationBehaviorTreeGroup>(::BehaviorFactory&)>>
72 mCreateAutomationTree;
73 ::ll::TypedStorage<
74 8,
75 16,
77 ::Bedrock::NotNullNonOwnerPtr<::ILevel>,
79 )>>
80 mCreateDimensionFactoryAndManager;
81 ::ll::TypedStorage<1, 1, ::SubClientId> mSubClientId;
82 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::LinkedAssetValidator>> mValidator;
83 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelData>> mLevelData;
84 ::ll::TypedStorage<1, 1, bool> mIsTrialMode;
85 ::ll::TypedStorage<1, 1, bool> mIsClientSide;
86 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ParticleProvider>> mParticles;
87 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VoxelShapes::VoxelShapeRegistry>> mShapeRegistry;
88 // NOLINTEND
89
90public:
91 // prevent constructor by default
92 LevelArguments& operator=(LevelArguments const&);
93 LevelArguments(LevelArguments const&);
94 LevelArguments();
95
96public:
97 // member functions
98 // NOLINTBEGIN
99#ifdef LL_PLAT_C
100 MCNAPI ~LevelArguments();
101#endif
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107#ifdef LL_PLAT_C
108 MCNAPI void $dtor();
109#endif
110 // NOLINTEND
111};
Definition AutomationBehaviorTreeGroup.h:15
Definition BehaviorFactory.h:13
Definition BlockTypeRegistry.h:23
Definition EntityContext.h:15
Definition EntitySystemsManager.h:17
Definition IEntityRegistryOwner.h:14
Definition ILevel.h:223
Definition IMinecraftEventing.h:152
Definition LevelCrashDumpManager.h:9
Definition LevelData.h:57
Definition LevelEventCoordinator.h:22
Definition LevelSoundManager.h:40
Definition LevelStorageManager.h:26
Definition LinkedAssetValidator.h:9
Definition PacketSender.h:17
Definition ParticleProvider.h:25
Definition PauseManager.h:10
Definition Scheduler.h:15
Definition StackRefResult.h:7
Definition StructureManager.h:35
Definition VoxelShapeRegistry.h:17
Definition StructureSetRegistry.h:12
Definition function_ref.h:60
Definition DimensionFactoryAndManager.h:14