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 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI void _applyDamage(
49 ::ActorDamageSource const& source,
50 ::CommandOutput& output
51 ) const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void setup(::CommandRegistry& registry);
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
74
75// clang-format off
76template <>
77MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::DamageCommand::DamageOrigin>();
78// clang-format on
Definition ActorDamageSource.h:18
Definition Actor.h:125
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition CommandSelectorResults.h:6
Definition DamageCommand.h:20
static MCAPI void ** $vftable()