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
18public:
19 // ImpactDamageSubcomponent inner types define
20 enum class DifficultyRandomization : uchar {
21 None = 0,
22 Additive = 1,
23 Multiplicative = 2,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 8, ::FloatRange> mProjectileDamage;
30 ::ll::TypedStorage<4, 4, ::ActorType> mFilter;
31 ::ll::TypedStorage<1, 1, bool> mCatchFire;
32 ::ll::TypedStorage<1, 1, bool> mChanneling;
33 ::ll::TypedStorage<1, 1, bool> mKnockback;
34 ::ll::TypedStorage<1, 1, ::ImpactDamageSubcomponent::DifficultyRandomization> mDifficultyRandomization;
35 ::ll::TypedStorage<1, 1, bool> mCeilPreCriticalDamage;
36 ::ll::TypedStorage<1, 1, bool> mDestroyOnHit;
37 ::ll::TypedStorage<1, 1, bool> mRegisterLastHurtRequiresDamage;
38 ::ll::TypedStorage<1, 1, bool> mDestroyOnHitRequiresDamage;
39 ::ll::TypedStorage<1, 1, bool> mApplyKnockbackToBlockingTargets;
40 ::ll::TypedStorage<4, 4, int> mMaxCriticalDamage;
41 ::ll::TypedStorage<4, 4, int> mMinCriticalDamage;
42 ::ll::TypedStorage<4, 4, float> mPowerMultiplier;
43 // NOLINTEND
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual void readfromJSON(::Json::Value& component) /*override*/;
49
50 virtual void writetoJSON(::Json::Value& component) const /*override*/;
51
52 virtual void doOnHitEffect(::Actor& owner, ::ProjectileComponent& component) /*override*/;
53
54 virtual char const* getName() const /*override*/;
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $readfromJSON(::Json::Value& component);
61
62 MCAPI void $writetoJSON(::Json::Value& component) const;
63
64 MCAPI void $doOnHitEffect(::Actor& owner, ::ProjectileComponent& component);
65
66 MCAPI char const* $getName() const;
67
68
69 // NOLINTEND
70};
Definition Actor.h:114
Definition ImpactDamageSubcomponent.h:17
Definition Value.h:16
Definition OnHitSubcomponent.h:12
Definition ProjectileComponent.h:31