LeviLamina
Loading...
Searching...
No Matches
ScriptDebugCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOutput;
11class IScriptDebugger;
13// clang-format on
14
16public:
17 // ScriptDebugCommand inner types define
18 enum class Mode : int {
19 Unknown = 0,
20 Debugger = 1,
21 Profiler = 2,
22 Diagnostics = 3,
23 };
24
25 enum class DebuggerAction : int {
26 Listen = 0,
27 Connect = 1,
28 Close = 2,
29 };
30
31 enum class ProfilerAction : int {
32 Start = 0,
33 Stop = 1,
34 };
35
36 enum class DiagnosticsAction : int {
37 StartCapture = 0,
38 StopCapture = 1,
39 };
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~ScriptDebugCommand() /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI void _handleDebuggerAttach(
52 ::IScriptDebugger* debugger,
53 ::std::string const& locPrefix,
54 ::ScriptDebugCommand::DebuggerAction action,
55 ::std::string const& host,
56 ushort port,
57 ::CommandOutput& output
58 ) const;
59
60 MCAPI void _handleDiagnosticsAction(
61 ::ScriptDiagnosticsPublishToFile* diagnosticsPublishToFile,
62 ::std::string const& locPrefix,
63 ::ScriptDebugCommand::DiagnosticsAction action,
64 ::CommandOutput& output
65 ) const;
66
67 MCAPI void _handleProfilerAction(
68 ::IScriptDebugger* debugger,
69 ::std::string const& locPrefix,
70 ::ScriptDebugCommand::ProfilerAction action,
71 ::CommandOutput& output
72 ) const;
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCFOLD void $dtor();
79 // NOLINTEND
80};
Definition CommandOutput.h:19
Definition Command.h:17
Definition IScriptDebugger.h:11
Definition ScriptDebugCommand.h:15
Definition ScriptDiagnosticsPublishToFile.h:16