LeviLamina
Loading...
Searching...
No Matches
ImpactDamageSubcomponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components_json_legacy/OnHitSubcomponent.h"
7#include "mc/util/FloatRange.h"
8#include "mc/world/actor/ActorType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
14namespace Json { class Value; }
15// clang-format on
16
17class ImpactDamageSubcomponent : public ::OnHitSubcomponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 8, ::FloatRange> mProjectileDamage;
22 ::ll::TypedStorage<4, 4, ::ActorType> mFilter;
23 ::ll::TypedStorage<1, 1, bool> mCatchFire;
24 ::ll::TypedStorage<1, 1, bool> mChanneling;
25 ::ll::TypedStorage<1, 1, bool> mKnockback;
26 ::ll::TypedStorage<1, 1, bool> mSemiRandomDiffDamage;
27 ::ll::TypedStorage<1, 1, bool> mDestroyOnHit;
28 ::ll::TypedStorage<1, 1, bool> mRegisterLastHurtRequiresDamage;
29 ::ll::TypedStorage<1, 1, bool> mDestroyOnHitRequiresDamage;
30 ::ll::TypedStorage<1, 1, bool> mApplyKnockbackToBlockingTargets;
31 ::ll::TypedStorage<4, 4, int> mMaxCriticalDamage;
32 ::ll::TypedStorage<4, 4, int> mMinCriticalDamage;
33 ::ll::TypedStorage<4, 4, float> mPowMultiplier;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~ImpactDamageSubcomponent() /*override*/ = default;
40
41 virtual void readfromJSON(::Json::Value& component) /*override*/;
42
43 virtual void writetoJSON(::Json::Value& component) const /*override*/;
44
45 virtual void doOnHitEffect(::Actor& owner, ::ProjectileComponent& component) /*override*/;
46
47 virtual char const* getName() const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI ImpactDamageSubcomponent();
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $readfromJSON(::Json::Value& component);
66
67 MCAPI void $writetoJSON(::Json::Value& component) const;
68
69 MCAPI void $doOnHitEffect(::Actor& owner, ::ProjectileComponent& component);
70
71 MCAPI char const* $getName() const;
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCNAPI static void** $vftable();
80 // NOLINTEND
81};
Definition Actor.h:123
static MCAPI void ** $vftable()
Definition Value.h:16
Definition ProjectileComponent.h:31