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 CommandRegistry;
13struct SnapshotFilenameAndLength;
14namespace Bedrock::Threading { class Mutex; }
15// clang-format on
16
17class SaveCommand : public ::ServerCommand {
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 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 SaveCommand& operator=(SaveCommand const&);
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void execute(::CommandOrigin const&, ::CommandOutput& output) const /*override*/;
48
49 virtual ~SaveCommand() /*override*/ = default;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static void saveHold(::CommandOutput& output);
56
57 MCAPI static void saveResume(::CommandOutput& output);
58
59 MCAPI static void saveState(::CommandOutput& output);
60
61 MCAPI static void setup(::CommandRegistry& registry);
62 // NOLINTEND
63
64public:
65 // static variables
66 // NOLINTBEGIN
67 MCAPI static ::std::vector<::SnapshotFilenameAndLength>& mSaveAllFileList();
68
69 MCAPI static ::Bedrock::Threading::Mutex& mSaveAllMutex();
70
71 MCAPI static ::SaveCommand::State& mState();
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI void $execute(::CommandOrigin const&, ::CommandOutput& output) const;
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition SaveCommand.h:17
static MCAPI void ** $vftable()
Definition Alias.h:14