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
10// auto generated forward declare list
11// clang-format off
13class BaseGameVersion;
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 ::ResourcePackManager const& resourcePackManager,
61 ::LevelSeed64 levelSeed,
62 ::LevelStorage& levelStorage,
63 ::BaseGameVersion const& baseGameVersion,
65 );
66
67 MCAPI void initializeBiomeRegistryAndAutomaticFeatureRulesOnServer(
68 ::IWorldRegistriesProvider& worldRegistries,
69 ::ResourcePackManager& resourcePackManager,
70 ::LevelSeed64 levelSeed,
71 ::LevelStorage& levelStorage,
72 ::BaseGameVersion const& baseGameVersion,
74 );
75
76 MCAPI ~BiomeManager();
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void*
83 $ctor(::OwnerPtr<::BiomeRegistry> biomes, ::std::unique_ptr<::AutomaticFeatureRules> automaticFeatureRules);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCAPI void $dtor();
90 // NOLINTEND
91};
Definition AutomaticFeatureRules.h:27
Definition BaseGameVersion.h:8
Definition NonOwnerPointer.h:9
Definition Publisher.h:8
Definition BiomeComponentFactory.h:22
Definition BiomeManager.h:27
Definition BiomeRegistry.h:35
Definition HashedString.h:5
Definition IWorldRegistriesProvider.h:26
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