LeviLamina
Loading...
Searching...
No Matches
AngryComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/actor/ActorFilterGroup.h"
8#include "mc/world/level/Tick.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
14class Mob;
15struct Tick;
16// clang-format on
17
18class AngryComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 4, int> mDuration;
23 ::ll::TypedStorage<1, 1, bool> mHasTicked;
24 ::ll::TypedStorage<1, 1, bool> mBroadcastAnger;
25 ::ll::TypedStorage<1, 1, bool> mBroadcastOnAttack;
26 ::ll::TypedStorage<1, 1, bool> mBroadcastOnBeingAttacked;
27 ::ll::TypedStorage<1, 1, bool> mBroadcastAngerWhenDying;
28 ::ll::TypedStorage<4, 4, int> mBroadcastRange;
29 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mBroadcastFilter;
30 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mSubjectFilter;
31 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 AngryComponent& operator=(AngryComponent const&);
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI AngryComponent();
42
43 MCAPI AngryComponent(::AngryComponent&&);
44
45 MCAPI AngryComponent(::AngryComponent const&);
46
47 MCAPI bool canGetAngry(::Mob& owner, ::Mob* testMob, ::Actor* target, bool allowInvulnerable, bool mustSee) const;
48
49 MCAPI ::SharedTypes::Legacy::LevelSoundEvent const getAngrySound(::Mob const& mob) const;
50
51 MCFOLD bool getBroadcastAnger() const;
52
53 MCFOLD bool getBroadcastAngerOnAttack() const;
54
55 MCFOLD bool getBroadcastAngerOnBeingAttacked() const;
56
57 MCFOLD bool getBroadcastAngerWhenDying() const;
58
59 MCFOLD ::ActorFilterGroup const& getBroadcastFilter() const;
60
61 MCFOLD int getBroadcastRange() const;
62
63 MCFOLD bool getHasTicked() const;
64
65 MCFOLD ::Tick const getNextSoundEventTick() const;
66
67 MCAPI void restartTimer(::Mob& owner);
68
69 MCAPI void setAngry(::Mob& owner, bool value);
70
71 MCAPI void setHasTicked(bool hasTicked);
72
73 MCAPI void setNextSoundEventTick(::Mob const& mob);
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor();
80
81 MCFOLD void* $ctor(::AngryComponent&&);
82
83 MCFOLD void* $ctor(::AngryComponent const&);
84 // NOLINTEND
85};
Definition ActorFilterGroup.h:19
Definition Actor.h:125
Definition Mob.h:57
Definition Tick.h:5