LeviLamina
Loading...
Searching...
No Matches
LevelListCacheObserver.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/Observer.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Core { class SingleThreadedLock; }
11// clang-format on
12
13class LevelListCacheObserver : public ::Core::Observer<::LevelListCacheObserver, ::Core::SingleThreadedLock> {
14public:
15 // LevelListCacheObserver inner types define
16 enum class LevelAddedType : int {
17 NewWorld = 0,
18 ExistingWorld = 1,
19 };
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual void onLevelAdded(::std::string const& levelId, ::LevelListCacheObserver::LevelAddedType type);
25
26 virtual void onLevelUpdated(::std::string const& levelId);
27
28 virtual void onLevelDeleted(::std::string const& levelId);
29
30 virtual void onSummaryUpdated(::std::string const& levelId);
31
32 virtual void onStorageChanged();
33 // NOLINTEND
34
35public:
36 // virtual function thunks
37 // NOLINTBEGIN
38#ifdef LL_PLAT_C
39 MCNAPI void $onLevelAdded(::std::string const& levelId, ::LevelListCacheObserver::LevelAddedType type);
40
41 MCNAPI void $onLevelUpdated(::std::string const& levelId);
42
43 MCNAPI void $onLevelDeleted(::std::string const& levelId);
44
45 MCNAPI void $onSummaryUpdated(::std::string const& levelId);
46
47 MCNAPI void $onStorageChanged();
48#endif
49
50
51 // NOLINTEND
52};
Definition Observer.h:9
Definition SingleThreadedLock.h:7
Definition LevelListCacheObserver.h:13