Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WorldSettings.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8#include "mc/world/level/storage/LevelDataWrapper.h"
9
10// auto generated forward declare list
11// clang-format off
12class Minecraft;
13namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
14// clang-format on
15
16namespace World {
17
18class WorldSettings {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 1712, ::LevelDataWrapper> mLevelDataWrapper;
23 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLevelChangedSubscription;
24 ::ll::TypedStorage<
25 8,
26 48,
27 ::Bedrock::PubSub::Publisher<void(::LevelDataWrapper&), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
28 mLevelChangedPublisher;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 WorldSettings();
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI explicit WorldSettings(::Minecraft& serverData);
39
40 MCNAPI ::Bedrock::PubSub::Subscription
41 registerLevelChangedListener(::std::function<void(::LevelDataWrapper&)> callback);
42 // NOLINTEND
43
44public:
45 // constructor thunks
46 // NOLINTBEGIN
47 MCNAPI void* $ctor(::Minecraft& serverData);
48 // NOLINTEND
49};
50
51} // namespace World
Definition LevelDataWrapper.h:14
Definition Minecraft.h:59
Definition WorldSettings.h:7
MCAPI::Bedrock::PubSub::Subscription registerLevelChangedListener(::std::function< void(::LevelDataWrapper &)> callback)
MCAPI void * $ctor(::Minecraft &serverData)
MCAPI WorldSettings(::Minecraft &serverData)