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;
14namespace Bedrock::Threading { class Mutex; }
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 };
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 // vIndex: 2
48 virtual void execute(::CommandOrigin const&, ::CommandOutput& output) const /*override*/;
49
50 // vIndex: 0
51 virtual ~SaveCommand() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void saveHold(::CommandOutput& output);
58
59 MCAPI static void saveResume(::CommandOutput& output);
60
61 MCAPI static void saveState(::CommandOutput& output);
62
63 MCAPI static void setup(::CommandRegistry& registry);
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCAPI static ::std::vector<::SnapshotFilenameAndLength>& mSaveAllFileList();
70
71 MCAPI static ::Bedrock::Threading::Mutex& mSaveAllMutex();
72
73 MCAPI static ::SaveCommand::State& mState();
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCAPI void $execute(::CommandOrigin const&, ::CommandOutput& output) const;
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCAPI static void** $vftable();
92 // NOLINTEND
93};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition SaveCommand.h:17
Definition ServerCommand.h:22
Definition SnapshotFilenameAndLength.h:5
Definition Alias.h:14