LeviLamina
Loading...
Searching...
No Matches
GameDataSaveTimer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class GameDataSaveTimer {
6public:
7 // member variables
8 // NOLINTBEGIN
14 // NOLINTEND
15
16public:
17 // prevent constructor by default
18 GameDataSaveTimer& operator=(GameDataSaveTimer const&);
19 GameDataSaveTimer(GameDataSaveTimer const&);
20 GameDataSaveTimer();
21
22public:
23 // member functions
24 // NOLINTBEGIN
25 MCNAPI bool areStorageActionsAllowed() const;
26
27 MCNAPI ::std::chrono::steady_clock::time_point
28 calculateNextGameDataSaveTime(::std::chrono::steady_clock::time_point currentTime) const;
29
30 MCNAPI bool isNextGameDataSaveTimeSet() const;
31
32 MCNAPI bool isTimeForGameDataSave(::std::chrono::steady_clock::time_point currentTime) const;
33
34 MCNAPI bool isTimeForStorageCheck(::std::chrono::steady_clock::time_point currentTime) const;
35
36 MCNAPI void onAppSuspend();
37
38 MCNAPI void onStartLeaveGame();
39
40 MCNAPI void onUpdateAfterStorageDeferred(::std::chrono::steady_clock::time_point currentTime);
41
42 MCNAPI ::std::shared_ptr<void*> requestTimedStorageDeferment();
43
44 MCNAPI void setNextGameDataSaveTime(::std::chrono::steady_clock::time_point nextGameDataSaveTime);
45
46 MCNAPI void setNextStorageCheckTime(::std::chrono::steady_clock::time_point nextStorageCheckTime);
47
49
51
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCNAPI static ::std::chrono::steady_clock::time_point
59 calculateNextStorageCheckTime(::std::chrono::steady_clock::time_point currentTime);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67};
MCAPI void setNextGameDataSaveTime(::std::chrono::steady_clock::time_point nextGameDataSaveTime)
MCAPI void onAppSuspend()
MCAPI bool isTimeForStorageCheck(::std::chrono::steady_clock::time_point currentTime) const
MCAPI ~GameDataSaveTimer()
MCAPI bool wasStorageSavePreviouslyDeferred() const
MCAPI void setWasStorageSavePreviouslyDeferred(bool wasStorageSavePreviouslyDeferred)
MCAPI ::std::shared_ptr< void * > requestTimedStorageDeferment()
MCAPI bool isNextGameDataSaveTimeSet() const
MCAPI void $dtor()
static MCAPI ::std::chrono::steady_clock::time_point calculateNextStorageCheckTime(::std::chrono::steady_clock::time_point currentTime)
MCAPI bool isTimeForGameDataSave(::std::chrono::steady_clock::time_point currentTime) const
MCAPI bool areStorageActionsAllowed() const
MCAPI void setNextStorageCheckTime(::std::chrono::steady_clock::time_point nextStorageCheckTime)
MCAPI::std::chrono::steady_clock::time_point calculateNextGameDataSaveTime(::std::chrono::steady_clock::time_point currentTime) const
MCAPI void onStartLeaveGame()
MCAPI void onUpdateAfterStorageDeferred(::std::chrono::steady_clock::time_point currentTime)
Definition Alias.h:14