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;
13class Level;
15namespace Bedrock::Threading { class Mutex; }
16// clang-format on
17
19public:
20 // SaveCommand inner types define
21 enum class Mode : int {
22 Hold = 0,
23 Resume = 1,
24 Query = 2,
25 };
26
27 enum class State : int {
28 Idle = 0,
29 Saving = 1,
30 Complete = 2,
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& output, ::CommandOutput&) const /*override*/;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static bool saveHold(::Level& level);
49
50 MCAPI static bool saveResume(::Level& level);
51
52 MCAPI static void setup(::CommandRegistry& registry);
53 // NOLINTEND
54
55public:
56 // static variables
57 // NOLINTBEGIN
58 MCAPI static ::std::vector<::SnapshotFilenameAndLength>& mSaveAllFileList();
59
60 MCAPI static ::Bedrock::Threading::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& output, ::CommandOutput&) const;
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
77
78// clang-format off
79template <>
80MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::SaveCommand::Mode>();
81// clang-format on
Definition Mutex.h:10
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Level.h:255
Definition SaveCommand.h:18
static MCAPI void ** $vftable()
Definition ServerCommand.h:22
Definition SnapshotFilenameAndLength.h:5