LeviLamina
Loading...
Searching...
No Matches
FireAtTargetGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/json_utils/JsonSchemaObjectNode.h"
7#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9#include "mc/world/actor/projectile/ProjectileAnchor.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
15class EntityContext;
16class Mob;
17class Vec3;
19struct FloatRange;
20namespace JsonUtil { class EmptyClass; }
21// clang-format on
22
23class FireAtTargetGoal : public ::Goal {
24public:
25 // FireAtTargetGoal inner types declare
26 // clang-format off
27 class Definition;
28 // clang-format on
29
30 // FireAtTargetGoal inner types define
32 public:
33 // member variables
34 // NOLINTBEGIN
48 // NOLINTEND
49
50 public:
51 // prevent constructor by default
52 Definition& operator=(Definition const&);
53 Definition(Definition const&);
54 Definition();
55
56 public:
57 // virtual functions
58 // NOLINTBEGIN
59 // vIndex: 0
60 virtual ~Definition() /*override*/ = default;
61 // NOLINTEND
62
63 public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI void initialize(::EntityContext& entity, ::FireAtTargetGoal& goal) const;
67
68 MCAPI void setOwnerAnchor(int const& value);
69
70 MCAPI void setProjectileDefinitionByName(::std::string const& name);
71
72 MCAPI void setTargetAnchor(int const& value);
73 // NOLINTEND
74
75 public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void buildSchema(
79 ::std::string const& name,
81 root
82 );
83 // NOLINTEND
84
85 public:
86 // destructor thunk
87 // NOLINTBEGIN
88
89 // NOLINTEND
90
91 public:
92 // vftables
93 // NOLINTBEGIN
94 MCAPI static void** $vftable();
95 // NOLINTEND
96 };
97
98public:
99 // member variables
100 // NOLINTBEGIN
101 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
102 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mFilters;
103 ::ll::TypedStorage<4, 8, ::FloatRange> mAttackRangeSquared;
104 ::ll::TypedStorage<4, 4, uint> mAttackCooldownTicks;
105 ::ll::TypedStorage<4, 4, uint> mPreShootDelayTicks;
106 ::ll::TypedStorage<8, 8, uint64> mDurationTicks;
107 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationX;
108 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationY;
109 ::ll::TypedStorage<4, 4, float> mRangedFOV;
110 ::ll::TypedStorage<1, 1, bool> mTriedToShoot;
111 ::ll::TypedStorage<8, 8, uint64> mAttackCooldownTimeStamp;
112 ::ll::TypedStorage<8, 8, uint64> mPreShootDelayTimeStamp;
113 ::ll::TypedStorage<8, 8, uint64> mEndTimeStamp;
114 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mProjectileDefinition;
115 ::ll::TypedStorage<4, 4, ::ProjectileAnchor> mOwnerAnchor;
116 ::ll::TypedStorage<4, 12, ::Vec3> mOwnerOffset;
117 ::ll::TypedStorage<4, 4, ::ProjectileAnchor> mTargetAnchor;
118 ::ll::TypedStorage<4, 12, ::Vec3> mTargetOffset;
119 // NOLINTEND
120
121public:
122 // virtual functions
123 // NOLINTBEGIN
124 // vIndex: 1
125 virtual bool canUse() /*override*/;
126
127 // vIndex: 2
128 virtual bool canContinueToUse() /*override*/;
129
130 // vIndex: 4
131 virtual void start() /*override*/;
132
133 // vIndex: 5
134 virtual void stop() /*override*/;
135
136 // vIndex: 6
137 virtual void tick() /*override*/;
138
139 // vIndex: 7
140 virtual void appendDebugInfo(::std::string& str) const /*override*/;
141
142 // vIndex: 0
143 virtual ~FireAtTargetGoal() /*override*/ = default;
144 // NOLINTEND
145
146public:
147 // member functions
148 // NOLINTBEGIN
149 MCAPI explicit FireAtTargetGoal(::Mob& mob);
150 // NOLINTEND
151
152public:
153 // static functions
154 // NOLINTBEGIN
155 MCAPI static ::Vec3
156 _getAnchorAndOffsetPosition(::Actor const& actor, ::ProjectileAnchor anchor, ::Vec3 const& offset);
157 // NOLINTEND
158
159public:
160 // constructor thunks
161 // NOLINTBEGIN
162 MCAPI void* $ctor(::Mob& mob);
163 // NOLINTEND
164
165public:
166 // destructor thunk
167 // NOLINTBEGIN
168
169 // NOLINTEND
170
171public:
172 // virtual function thunks
173 // NOLINTBEGIN
174 MCAPI bool $canUse();
175
176 MCAPI bool $canContinueToUse();
177
178 MCAPI void $start();
179
180 MCAPI void $stop();
181
182 MCAPI void $tick();
183
184 MCAPI void $appendDebugInfo(::std::string& str) const;
185 // NOLINTEND
186
187public:
188 // vftables
189 // NOLINTBEGIN
190 MCAPI static void** $vftable();
191 // NOLINTEND
192};
Definition ActorFilterGroup.h:16
Definition Actor.h:104
Definition BaseGoalDefinition.h:10
Definition EntityContext.h:16
Definition FireAtTargetGoal.h:31
Definition FireAtTargetGoal.h:23
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:13
Definition FloatRange.h:11
Definition Alias.h:14