Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ProjectCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/server/commands/ServerCommand.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class Level;
14struct ActorUniqueID;
15// clang-format on
16
18public:
19 // ProjectCommand inner types define
20 enum class ExportSubcommandTypes : int {
21 None = 0,
22 Project = 1,
23 World = 2,
24 Template = 3,
25 };
26
27 enum class Subcommand : int {
28 None = 0,
29 Export = 1,
30 };
31
32 enum class TaskState : int {
33 Running = 0,
34 Complete = 1,
35 Error = 2,
36 };
37
38public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<4, 4, ::ProjectCommand::Subcommand> mSubcommand;
42 ::ll::TypedStorage<4, 4, ::ProjectCommand::ExportSubcommandTypes> mExportSubcommandType;
43 // NOLINTEND
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCNAPI static void _cleanupOutputDirOnExportFailure(::Core::PathBuffer<::std::string> const& pathToOutputDir);
55
56 MCNAPI static void _outputFormattedCommand(
57 ::ActorUniqueID callingPlayerUniqueId,
58 ::Level* level,
59 ::std::string const& prefix,
60 ::std::string const& commandType,
61 ::std::string const& msg,
62 ::std::vector<::std::string> const& args
63 );
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
70
71
72 // NOLINTEND
73};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition PathBuffer.h:8
Definition Level.h:255
Definition ProjectCommand.h:17
static MCAPI void _outputFormattedCommand(::ActorUniqueID callingPlayerUniqueId, ::Level *level, ::std::string const &prefix, ::std::string const &commandType, ::std::string const &msg, ::std::vector<::std::string > const &args)
static MCAPI void _cleanupOutputDirOnExportFailure(::Core::PathBuffer<::std::string > const &pathToOutputDir)
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const
Definition ServerCommand.h:22
Definition ActorUniqueID.h:5