LeviLamina
Loading...
Searching...
No Matches
StorageAreaStateListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/LevelStorageState.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Bedrock::Threading { class Mutex; }
11namespace Core { class FileStorageArea; }
12// clang-format on
13
14namespace Core {
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Core::FileStorageArea>> mFileStorageArea;
21 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mMutex;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 0
29
30 // vIndex: 1
31 virtual void onExtendDiskSpace(
32 bool const bSet,
33 ::std::weak_ptr<::Core::FileStorageArea>& fileStorageAreaWeakPtr,
34 uint64 freeSpace,
35 ::std::function<void()> onHandledEventCallback
36 );
37
38 // vIndex: 2
39 virtual void onLowDiskSpace(bool const bSet);
40
41 // vIndex: 3
42 virtual void onOutOfDiskSpace(bool const bSet);
43
44 // vIndex: 4
45 virtual void onCriticalDiskError(bool const bSet, ::Core::LevelStorageState const& errorCode);
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI void initListener(::std::shared_ptr<::Core::FileStorageArea> fileStorageArea);
52
53 MCAPI void removeListener();
54 // NOLINTEND
55
56public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCAPI void $dtor();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $onExtendDiskSpace(
66 bool const bSet,
67 ::std::weak_ptr<::Core::FileStorageArea>& fileStorageAreaWeakPtr,
68 uint64 freeSpace,
69 ::std::function<void()> onHandledEventCallback
70 );
71
72 MCFOLD void $onLowDiskSpace(bool const bSet);
73
74 MCFOLD void $onOutOfDiskSpace(bool const bSet);
75
76 MCFOLD void $onCriticalDiskError(bool const bSet, ::Core::LevelStorageState const& errorCode);
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCAPI static void** $vftable();
83 // NOLINTEND
84};
85
86} // namespace Core
Definition StorageAreaStateListener.h:16