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/deps/shared_types/legacy/actor/ActorDamageCause.h"
7#include "mc/server/commands/Command.h"
8#include "mc/server/commands/CommandSelector.h"
9#include "mc/server/commands/CommandSelectorResults.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
15class CommandOrigin;
16class CommandOutput;
17class CommandRegistry;
18// clang-format on
19
20class DamageCommand : public ::Command {
21public:
22 // DamageCommand inner types define
23 enum class DamageOrigin : uchar {
24 None = 0,
25 Actor = 1,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mTargets;
32 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mDamager;
33 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ActorDamageCause> mCause;
34 ::ll::TypedStorage<4, 4, int> mAmount;
35 ::ll::TypedStorage<1, 1, ::DamageCommand::DamageOrigin> mDamageOrigin;
36 // NOLINTEND
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
42
43 virtual ~DamageCommand() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI void _applyDamage(
51 ::ActorDamageSource const& source,
52 ::CommandOutput& output
53 ) const;
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static void setup(::CommandRegistry& registry);
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
66
67
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition ActorDamageSource.h:18
Definition Actor.h:106
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:50
Definition CommandSelectorResults.h:6
Definition Command.h:17
Definition DamageCommand.h:20
static MCAPI void ** $vftable()