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
57 _applyDamage(::CommandSelectorResults<::Actor>& targets, ::ActorDamageSource const& source, ::CommandOutput& output)
58 const;
59 // NOLINTEND
60
61public:
62 // static functions
63 // NOLINTBEGIN
64 MCAPI static void setup(::CommandRegistry& registry);
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor();
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition ActorDamageSource.h:18
Definition Actor.h:104
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition CommandSelectorResults.h:6
Definition Command.h:17
Definition DamageCommand.h:18
Definition Alias.h:14