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
20struct BossComponent {
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&);
41 BossComponent(BossComponent const&);
42 BossComponent();
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI BossComponent(::BossComponent&&);
48
49 MCAPI void _sendBossEvent(::Actor& owner, ::BossEventUpdateType type, ::Player* player);
50
51 MCAPI void broadcastBossEvent(::Actor& owner, ::BossEventUpdateType type);
52
53 MCAPI void handleRegisterPlayers(::Actor& owner);
54
55 MCAPI ::BossComponent& operator=(::BossComponent&&);
56
57 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
58
59 MCAPI void sendDeathTelemetry(::Actor& owner);
60
61 MCAPI void setName(::Actor& owner, ::Bedrock::Safety::RedactableString const& name);
62
63 MCAPI bool tryRemoveBoss(::Actor& owner, ::Player& player);
64
65 MCAPI void unRegisterPlayer(::Actor& owner, ::Player* player);
66
67 MCAPI ~BossComponent();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(::BossComponent&&);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81};
Definition Actor.h:105
Definition RedactableString.h:10
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition Player.h:125
Definition UUID.h:7