LeviLamina
Loading...
Searching...
No Matches
PlayDeadGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
7#include "mc/util/IntRange.h"
8#include "mc/util/json_util/JsonSchemaObjectNode.h"
9#include "mc/world/actor/ActorFilterGroup.h"
10#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
11#include "mc/world/actor/ai/goal/Goal.h"
12
13// auto generated forward declare list
14// clang-format off
15class Mob;
16namespace JsonUtil { class EmptyClass; }
17// clang-format on
18
19class PlayDeadGoal : public ::Goal {
20public:
21 // PlayDeadGoal inner types declare
22 // clang-format off
23 class Definition;
24 // clang-format on
25
26 // PlayDeadGoal inner types define
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, float> mDuration;
32 ::ll::TypedStorage<4, 4, float> mRandomStartChance;
33 ::ll::TypedStorage<4, 4, int> mForceUseBelowHealth;
34 ::ll::TypedStorage<4, 8, ::IntRange> mActivationDamageRange;
35 ::ll::TypedStorage<1, 1, bool> mApplyRegeneration;
36 ::ll::TypedStorage<8, 24, ::std::vector<::SharedTypes::Legacy::ActorDamageCause>> mDamageCauses;
37 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mFilters;
38 // NOLINTEND
39
40 public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~Definition() /*override*/ = default;
44 // NOLINTEND
45
46 public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI void addDamageCause(::std::string const& causeCased);
50 // NOLINTEND
51
52 public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static void buildSchema(
56 ::std::string const& name,
58 root
59 );
60 // NOLINTEND
61
62 public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
72 ::ll::TypedStorage<8, 128, ::PlayDeadGoal::Definition> mDefinition;
73 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
74 ::ll::TypedStorage<8, 8, uint64> mPlayDeadDuration;
75 ::ll::TypedStorage<8, 8, uint64> mStopPlayingDeadTime;
76 ::ll::TypedStorage<8, 8, uint64> mLastDamagedTimestamp;
77 ::ll::TypedStorage<1, 1, bool> mPlayDeadOnAllCauses;
78 // NOLINTEND
79
80public:
81 // prevent constructor by default
82 PlayDeadGoal& operator=(PlayDeadGoal const&);
83 PlayDeadGoal(PlayDeadGoal const&);
84 PlayDeadGoal();
85
86public:
87 // virtual functions
88 // NOLINTBEGIN
89 virtual bool canUse() /*override*/;
90
91 virtual void start() /*override*/;
92
93 virtual void stop() /*override*/;
94
95 virtual bool canContinueToUse() /*override*/;
96
97 virtual void appendDebugInfo(::std::string& str) const /*override*/;
98
99 virtual ~PlayDeadGoal() /*override*/ = default;
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI bool $canUse();
106
107 MCAPI void $start();
108
109 MCAPI void $stop();
110
111 MCAPI bool $canContinueToUse();
112
113 MCAPI void $appendDebugInfo(::std::string& str) const;
114
115
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCNAPI static void** $vftable();
122 // NOLINTEND
123};
Definition BaseGoalDefinition.h:10
Definition Goal.h:14
Definition EmptyClass.h:7
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:50
Definition PlayDeadGoal.h:27
static MCAPI void ** $vftable()
static MCAPI void ** $vftable()