LeviLamina
Loading...
Searching...
No Matches
ContentSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/ContentSourceType.h"
7
8// auto generated forward declare list
9// clang-format off
10struct ContentItem;
11// clang-format on
12
13struct ContentSource {
14public:
15 // ContentSource inner types define
16 using ConstContentItemPtr = ::std::shared_ptr<::ContentItem const>;
17
18 using ContentItemPtr = ::std::shared_ptr<::ContentItem>;
19
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ContentItem>>> mLoadedItems;
24 ::ll::TypedStorage<4, 4, ::ContentSourceType> mType;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~ContentSource() = default;
31
32 virtual void load();
33
34 virtual void generateItems(::std::vector<::std::shared_ptr<::ContentItem>>& content);
35
36 virtual void save();
37
38 virtual void saveAllPacks();
39
40 virtual void deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
41
42 virtual void postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCFOLD void $load();
49
50 MCFOLD void $generateItems(::std::vector<::std::shared_ptr<::ContentItem>>& content);
51
52 MCFOLD void $save();
53
54 MCFOLD void $saveAllPacks();
55
56 MCFOLD void $deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
57
58 MCFOLD void $postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& items);
59 // NOLINTEND
60};
Definition ContentItem.h:5
Definition ContentSource.h:5