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
15class ScriptDebugCommand : public ::Command {
16public:
17 // ScriptDebugCommand inner types define
18 enum class DebuggerAction : int {
19 Listen = 0,
20 Connect = 1,
21 Close = 2,
22 };
23
24 enum class DiagnosticsAction : int {
25 StartCapture = 0,
26 StopCapture = 1,
27 };
28
29 enum class Mode : int {
30 Unknown = 0,
31 Debugger = 1,
32 Profiler = 2,
33 Diagnostics = 3,
34 };
35
36 enum class ProfilerAction : int {
37 Start = 0,
38 Stop = 1,
39 };
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ScriptDebugCommand();
45
46 MCAPI void _handleDebuggerAttach(
47 ::IScriptDebugger* debugger,
48 ::std::string const& locPrefix,
49 ::ScriptDebugCommand::DebuggerAction action,
50 ::std::string const& host,
51 ushort port,
52 ::CommandOutput& output
53 ) const;
54
55 MCAPI void _handleDiagnosticsAction(
56 ::ScriptDiagnosticsPublishToFile* diagnosticsPublishToFile,
57 ::std::string const& locPrefix,
58 ::ScriptDebugCommand::DiagnosticsAction action,
59 ::CommandOutput& output
60 ) const;
61
62 MCAPI void _handleProfilerAction(
63 ::IScriptDebugger* debugger,
64 ::std::string const& locPrefix,
65 ::ScriptDebugCommand::ProfilerAction action,
66 ::CommandOutput& output
67 ) const;
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor();
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCNAPI static void** $vftable();
80 // NOLINTEND
81};
82
83// clang-format off
84template <>
85MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::ScriptDebugCommand::DebuggerAction>();
86template <>
87MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::ScriptDebugCommand::DiagnosticsAction>();
88template <>
89MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::ScriptDebugCommand::Mode>();
90template <>
91MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::ScriptDebugCommand::ProfilerAction>();
92// clang-format on
Definition CommandOutput.h:20
Definition IScriptDebugger.h:11
static MCAPI void ** $vftable()
Definition ScriptDiagnosticsPublishToFile.h:17