LeviLamina
Loading...
Searching...
No Matches
DamageCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandSelectorResults.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
13class CommandOrigin;
14class CommandOutput;
15class CommandRegistry;
16// clang-format on
17
18class DamageCommand : public ::Command {
19public:
20 // DamageCommand inner types define
21 enum class DamageOrigin : uchar {
22 None = 0,
23 Actor = 1,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 DamageCommand& operator=(DamageCommand const&);
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 2
45 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
46
47 // vIndex: 0
48 virtual ~DamageCommand() /*override*/ = default;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI DamageCommand();
55
56 MCAPI void _applyDamage(
58 ::ActorDamageSource const& source,
59 ::CommandOutput& output
60 ) const;
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static void setup(::CommandRegistry& registry);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition ActorDamageSource.h:18
Definition Actor.h:103
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:45
Definition CommandSelectorResults.h:6
Definition Command.h:17
Definition DamageCommand.h:18
static MCAPI void ** $vftable()
Definition Alias.h:14