LeviLamina
Loading...
Searching...
No Matches
BiomeManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/core/utility/pub_sub/Publisher.h"
8#include "mc/deps/game_refs/OwnerPtr.h"
9#include "mc/world/level/biome/glue/BiomeJsonDocumentGlue.h"
10
11// auto generated forward declare list
12// clang-format off
15class BiomeRegistry;
16class HashedString;
18class LevelSeed64;
19class LevelStorage;
24namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
25// clang-format on
26
28public:
29 // BiomeManager inner types define
30 using onLevelBiomesRegisteredSignature = void(::BiomeRegistry&);
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 16, ::gsl::not_null<::OwnerPtr<::BiomeRegistry>>> mBiomes;
36 ::ll::TypedStorage<8, 16, ::gsl::not_null<::OwnerPtr<::BiomeComponentFactory>>> mBiomeComponentFactory;
37 ::ll::TypedStorage<8, 16, ::gsl::not_null<::OwnerPtr<::SurfaceBuilderRegistry>>> mSurfaceBuilders;
38 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::AutomaticFeatureRules>>> mAutomaticFeatureRules;
39 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::BiomeDecorationFeature>>
40 mBiomeDecorationFeatureMap;
41 ::ll::TypedStorage<
42 8,
43 128,
45 mOnLevelBiomesRegisteredPublisher;
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI
56 BiomeManager(::OwnerPtr<::BiomeRegistry> biomes, ::std::unique_ptr<::AutomaticFeatureRules> automaticFeatureRules);
57
58 MCAPI void _initializeServerBiomeRegistry(
59 ::IWorldRegistriesProvider& worldRegistries,
60 ::LevelSeed64 levelSeed,
61 ::LevelStorage& levelStorage,
63 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlue::ResolvedBiomeData>>&
64 biomeIdToResolvedData
65 );
66
67 MCAPI void initializeBiomeRegistryAndAutomaticFeatureRulesOnServer(
68 ::IWorldRegistriesProvider& worldRegistries,
69 ::ResourcePackManager& resourcePackManager,
70 ::LevelSeed64 levelSeed,
71 ::LevelStorage& levelStorage,
73 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlue::ResolvedBiomeData>>&
74 biomeIdToResolvedData
75 );
76
77 MCAPI ~BiomeManager();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void*
84 $ctor(::OwnerPtr<::BiomeRegistry> biomes, ::std::unique_ptr<::AutomaticFeatureRules> automaticFeatureRules);
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCAPI void $dtor();
91 // NOLINTEND
92};
Definition AutomaticFeatureRules.h:27
Definition NonOwnerPointer.h:9
Definition Publisher.h:8
Definition BiomeComponentFactory.h:22
Definition BiomeManager.h:27
Definition BiomeRegistry.h:37
Definition HashedString.h:5
Definition IWorldRegistriesProvider.h:25
Definition LevelSeed64.h:5
Definition LevelStorage.h:25
Definition LinkedAssetValidator.h:8
Definition OwnerPtr.h:7
Definition ResourcePackManager.h:24
Definition SurfaceBuilderRegistry.h:13
Definition BiomeDecorationFeature.h:15