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