LeviLamina
Loading...
Searching...
No Matches
BossComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/safety/RedactableString.h"
7#include "mc/world/actor/ai/util/BossBarColor.h"
8#include "mc/world/actor/ai/util/BossBarOverlay.h"
9#include "mc/world/actor/ai/util/BossEventUpdateType.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class CompoundTag;
15class DataLoadHelper;
16class Player;
17namespace mce { class UUID; }
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mName;
25 ::ll::TypedStorage<1, 1, bool> mHealthBarVisible;
26 ::ll::TypedStorage<4, 4, float> mHealthPercent;
27 ::ll::TypedStorage<1, 1, bool> mShouldDarkenSky;
28 ::ll::TypedStorage<1, 1, bool> mCreateWorldFog;
29 ::ll::TypedStorage<4, 4, ::BossBarColor> mColor;
30 ::ll::TypedStorage<4, 4, ::BossBarOverlay> mOverlay;
31 ::ll::TypedStorage<4, 4, int> mPlayersRegistered;
32 ::ll::TypedStorage<4, 4, int> mLastHealth;
33 ::ll::TypedStorage<4, 4, int> mHudRangeSquared;
34 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastPlayerUpdate;
35 ::ll::TypedStorage<8, 64, ::std::unordered_map<::mce::UUID, int>> mPlayerParty;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 BossComponent& operator=(BossComponent const&);
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI BossComponent();
47
49
50 MCAPI void _sendBossEvent(::Actor& owner, ::BossEventUpdateType type, ::Player* player);
51
52 MCAPI void broadcastBossEvent(::Actor& owner, ::BossEventUpdateType type);
53
54 MCAPI void handleRegisterPlayers(::Actor& owner);
55
56 MCAPI ::BossComponent& operator=(::BossComponent&&);
57
58 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
59
60 MCAPI void sendDeathTelemetry(::Actor& owner);
61
62 MCAPI bool tryRemoveBoss(::Actor& owner, ::Player& player);
63
64 MCAPI void unRegisterPlayer(::Actor& owner, ::Player* player);
65
66 MCAPI ~BossComponent();
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor();
73
74 MCAPI void* $ctor(::BossComponent&&);
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82};
Definition Actor.h:102
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition Player.h:123
Definition BossComponent.h:20