LeviLamina
Loading...
Searching...
No Matches
Raid.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/Difficulty.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class Vec3;
12struct ActorUniqueID;
13struct Tick;
14// clang-format on
15
16class Raid {
17public:
18 // Raid inner types define
19 enum class RaidState : int {
20 PreparingGroup = 0,
21 PickingSpawnPoint = 1,
22 SpawningGroup = 2,
23 GroupInPlay = 3,
24 AwardingRewards = 4,
25 Finished = 5,
26 Stopped = 6,
27 };
28
29 enum class RaidStatus : int {
30 Ongoing = 0,
31 Victory = 1,
32 Defeat = 2,
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
69 // NOLINTEND
70
71public:
72 // prevent constructor by default
73 Raid& operator=(Raid const&);
74 Raid(Raid const&);
75 Raid();
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI Raid(
81 int raidPreparationTime,
82 int groupCompleteDelayInTicks,
83 int locationHelpDelayInTicks,
84 int finishedDelayInTicks,
85 ::SharedTypes::Legacy::Difficulty difficulty,
86 uchar allowedSpawnFailures,
87 ::std::function<bool(uint64, ::Vec3&)>&& pickSpawnPointCallback,
88 ::std::function<bool(uint64, ::Vec3, uchar, ::std::unordered_set<::ActorUniqueID>&)>&& spawnGroupCallback,
89 ::std::function<bool(::ActorUniqueID const&)>&& doesActorExistCallback,
90 ::std::function<bool()>&& isVillageDefeatedCallback
91 );
92
93 MCAPI float _calcBossBarUsingHealth() const;
94
95 MCAPI float _calcBossBarUsingMobs() const;
96
97 MCAPI float _getTotalRaiderHealth() const;
98
99 MCAPI void _tickGroupInPlay();
100
101 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
102
103 MCAPI float getBossBarFilledFraction() const;
104
105 MCAPI void readAdditionalSaveData(::CompoundTag const& tag);
106
107 MCAPI void tick(::Tick tick);
108
109 MCAPI ~Raid();
110 // NOLINTEND
111
112public:
113 // static variables
114 // NOLINTBEGIN
115 MCAPI static ::Vec3 const& INVALID_SPAWN_POINT();
116 // NOLINTEND
117
118public:
119 // constructor thunks
120 // NOLINTBEGIN
121 MCAPI void* $ctor(
122 int raidPreparationTime,
123 int groupCompleteDelayInTicks,
124 int locationHelpDelayInTicks,
125 int finishedDelayInTicks,
126 ::SharedTypes::Legacy::Difficulty difficulty,
127 uchar allowedSpawnFailures,
128 ::std::function<bool(uint64, ::Vec3&)>&& pickSpawnPointCallback,
129 ::std::function<bool(uint64, ::Vec3, uchar, ::std::unordered_set<::ActorUniqueID>&)>&& spawnGroupCallback,
130 ::std::function<bool(::ActorUniqueID const&)>&& doesActorExistCallback,
131 ::std::function<bool()>&& isVillageDefeatedCallback
132 );
133 // NOLINTEND
134
135public:
136 // destructor thunk
137 // NOLINTBEGIN
138 MCAPI void $dtor();
139 // NOLINTEND
140};
Definition CompoundTag.h:13
Definition Raid.h:16
Definition Vec3.h:10
Definition ActorUniqueID.h:5
Definition Tick.h:5
Definition Alias.h:14