LeviLamina
Loading...
Searching...
No Matches
Warden.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/world/actor/ai/util/ExpiringTick.h"
8#include "mc/world/actor/monster/Monster.h"
9#include "mc/world/level/Tick.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
15// clang-format on
16
17class Warden : public ::Monster {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::Tick> mTouchAngerCooldownExpiryTick;
22 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mSonicBoomCooldown;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual bool canDisableShield() /*override*/;
29
30 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
31
32 virtual void onSynchedDataUpdate(int dataId) /*override*/;
33
34 virtual void onPush(::Actor& source) /*override*/;
35
36 virtual void normalTick() /*override*/;
37
38 virtual void setTarget(::Actor* entity) /*override*/;
39
40 virtual bool checkSpawnRules(bool) /*override*/;
41
42 virtual bool checkSpawnObstruction() const /*override*/;
43
44 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
45
46 virtual bool doHurtTarget(::Actor* target, ::SharedTypes::Legacy::ActorDamageCause const& cause) /*override*/;
47
48 virtual ~Warden() /*override*/ = default;
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCFOLD bool $canDisableShield();
55
56 MCAPI bool $isInvulnerableTo(::ActorDamageSource const& source) const;
57
58 MCFOLD void $onSynchedDataUpdate(int dataId);
59
60 MCAPI void $onPush(::Actor& source);
61
62 MCAPI void $normalTick();
63
64 MCAPI void $setTarget(::Actor* entity);
65
66 MCFOLD bool $checkSpawnRules(bool);
67
68 MCAPI bool $checkSpawnObstruction() const;
69
70 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
71
72 MCAPI bool $doHurtTarget(::Actor* target, ::SharedTypes::Legacy::ActorDamageCause const& cause);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCAPI static void** $vftable();
81 // NOLINTEND
82};
Definition ActorDamageSource.h:18
Definition Actor.h:105
Definition Warden.h:17