LeviLamina
Loading...
Searching...
No Matches
WorldContentSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/ContentSource.h"
7#include "mc/platform/brstd/move_only_function.h"
8
9// auto generated forward declare list
10// clang-format off
11class ILevelListCache;
12struct ContentItem;
13struct LevelSummary;
14// clang-format on
15
16struct WorldContentSource : public ::ContentSource {
17public:
18 // WorldContentSource inner types define
19 using CanAccessWorldCallback = ::brstd::move_only_function<bool(::LevelSummary const&) const>;
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::ILevelListCache*> mLevelListCache;
25 ::ll::TypedStorage<8, 24, ::std::vector<::LevelSummary>> mLevelSummaryList;
26 ::ll::TypedStorage<8, 64, ::gsl::not_null<::brstd::move_only_function<bool(::LevelSummary const&) const>> const>
27 mCanAccessWorld;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 WorldContentSource();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~WorldContentSource() /*override*/ = default;
38
39 virtual void load() /*override*/;
40
41 virtual void generateItems(::std::vector<::std::shared_ptr<::ContentItem>>& content) /*override*/;
42
43 virtual void deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& items) /*override*/;
44
45 virtual void postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& items) /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI WorldContentSource(
52 ::ILevelListCache& levelListCache,
53 ::brstd::move_only_function<bool(::LevelSummary const&) const>&& canAccess
54 );
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(
61 ::ILevelListCache& levelListCache,
62 ::brstd::move_only_function<bool(::LevelSummary const&) const>&& canAccess
63 );
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI void $load();
70
71 MCAPI void $generateItems(::std::vector<::std::shared_ptr<::ContentItem>>& content);
72
73 MCAPI void $deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
74
75 MCAPI void $postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCNAPI static void** $vftable();
82 // NOLINTEND
83};
Definition ILevelListCache.h:27
Definition ContentItem.h:5
Definition ContentSource.h:5
Definition LevelSummary.h:30
Definition WorldContentSource.h:5
static MCAPI void ** $vftable()