Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LocalWorldStarter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/world/IWorldStorageHandler.h"
7#include "mc/client/world/StartLocalWorldResult.h"
8#include "mc/deps/core/threading/Async.h"
9
10// auto generated forward declare list
11// clang-format off
13class ILevelListCache;
14namespace Core { class FileSystem; }
15namespace World { class IWorldStorageHandler; }
16namespace World { struct RecentlyPlayedPendingTargetData; }
17namespace World { struct WorldID; }
18// clang-format on
19
20namespace World {
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::IGameServerStartup&> mGameServerStartup;
27 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
28 ::ll::TypedStorage<8, 8, ::World::IWorldStorageHandler&> mWorldStorageHandler;
29 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mHasValidCrossPlatformSkin;
30 ::ll::TypedStorage<8, 8, ::Core::FileSystem&> mFileSystem;
31 ::ll::TypedStorage<8, 64, ::std::function<void(::World::RecentlyPlayedPendingTargetData)>>
32 mPrepareRecentlyPlayedTarget;
33 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::Async<void>> mServerStartupResult;
34 ::ll::TypedStorage<4, 8, ::std::optional<::World::StartLocalWorldResult>> mStartLocalWorldErrorOverride;
35 ::ll::TypedStorage<1, 2, ::std::optional<::World::IWorldStorageHandler::DuplicateWorldResult>>
36 mBackupLocalWorldErrorOverride;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 LocalWorldStarter& operator=(LocalWorldStarter const&);
42 LocalWorldStarter(LocalWorldStarter const&);
43 LocalWorldStarter();
44
45public:
46 // member functions
47 // NOLINTBEGIN
49 ::IGameServerStartup& gameServerStartup,
50 ::ILevelListCache& levelListCache,
51 ::World::IWorldStorageHandler& worldStorageHandler,
52 ::std::function<bool()> hasValidCrossPlatformSkin,
53 ::Core::FileSystem& fileSystem,
54 ::std::function<void(::World::RecentlyPlayedPendingTargetData)> prepareRecentlyPlayedTarget
55 );
56
58 ::World::WorldID const& worldID,
59 ::std::function<
60 void(::World::IWorldStorageHandler::DuplicateWorldResult, ::std::optional<::World::StartLocalWorldResult>)>
61 onComplete
62 );
63
65
66 MCNAPI ::World::StartLocalWorldResult startLocalWorld(::World::WorldID const& worldID);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCNAPI void* $ctor(
73 ::IGameServerStartup& gameServerStartup,
74 ::ILevelListCache& levelListCache,
75 ::World::IWorldStorageHandler& worldStorageHandler,
76 ::std::function<bool()> hasValidCrossPlatformSkin,
77 ::Core::FileSystem& fileSystem,
78 ::std::function<void(::World::RecentlyPlayedPendingTargetData)> prepareRecentlyPlayedTarget
79 );
80 // NOLINTEND
81};
82
83} // namespace World
Definition FileSystem.h:28
Definition IGameServerStartup.h:5
Definition ILevelListCache.h:27
Definition IWorldStorageHandler.h:7
Definition LocalWorldStarter.h:7
MCAPI LocalWorldStarter(::IGameServerStartup &gameServerStartup, ::ILevelListCache &levelListCache, ::World::IWorldStorageHandler &worldStorageHandler, ::std::function< bool()> hasValidCrossPlatformSkin, ::Core::FileSystem &fileSystem, ::std::function< void(::World::RecentlyPlayedPendingTargetData)> prepareRecentlyPlayedTarget)
MCAPI::World::StartLocalWorldResult startLocalWorld(::World::WorldID const &worldID)
MCAPI void backupThenStartLocalWorld(::World::WorldID const &worldID, ::std::function< void(::World::IWorldStorageHandler::DuplicateWorldResult, ::std::optional<::World::StartLocalWorldResult >)> onComplete)
MCAPI void setConfirmedPlatformLockedContentForWorld(::World::WorldID const &worldID)
MCAPI void * $ctor(::IGameServerStartup &gameServerStartup, ::ILevelListCache &levelListCache, ::World::IWorldStorageHandler &worldStorageHandler, ::std::function< bool()> hasValidCrossPlatformSkin, ::Core::FileSystem &fileSystem, ::std::function< void(::World::RecentlyPlayedPendingTargetData)> prepareRecentlyPlayedTarget)
Definition RecentlyPlayedPendingTargetData.h:7
Definition WorldID.h:7