LeviLamina
Loading...
Searching...
No Matches
SaveCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/ServerCommand.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOrigin;
11class CommandOutput;
12class FileArchiver;
13class Level;
15// clang-format on
16
18public:
19 // SaveCommand inner types define
20 enum class Mode : int {
21 Hold = 0,
22 Resume = 1,
23 Query = 2,
24 };
25
26 enum class State : int {
27 Idle = 0,
28 Saving = 1,
29 Complete = 2,
30 Failed = 3,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<4, 4, ::SaveCommand::Mode> mMode;
37 // NOLINTEND
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual void execute(::CommandOrigin const&, ::CommandOutput& output) const /*override*/;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static bool saveHold(::Level& level, ::FileArchiver* fileArchiver);
49
50 MCAPI static bool saveResume(::Level& level);
51 // NOLINTEND
52
53public:
54 // static variables
55 // NOLINTBEGIN
56 MCAPI static ::std::string& mGeneratedVanillaLevelDataPath();
57
58 MCAPI static ::std::vector<::SnapshotFilenameAndLength>& mSaveAllFileList();
59
60 MCAPI static ::std::mutex& mSaveAllMutex();
61
62 MCAPI static ::SaveCommand::State& mState();
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI void $execute(::CommandOrigin const&, ::CommandOutput& output) const;
69 // NOLINTEND
70};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition FileArchiver.h:35
Definition Level.h:254
Definition SaveCommand.h:17
Definition ServerCommand.h:22
Definition SnapshotFilenameAndLength.h:5