LeviLamina
Loading...
Searching...
No Matches
SniffGoal.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/ActorType.h"
8#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
9#include "mc/world/actor/ai/goal/Goal.h"
10
11// auto generated forward declare list
12// clang-format off
13class Mob;
14class Vec3;
16struct FloatRange;
17struct Tick;
18namespace JsonUtil { class EmptyClass; }
19// clang-format on
20
21class SniffGoal : public ::Goal {
22public:
23 // SniffGoal inner types declare
24 // clang-format off
25 class Definition;
26 // clang-format on
27
28 // SniffGoal inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 Definition& operator=(Definition const&);
43 Definition(Definition const&);
44 Definition();
45
46 public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 0
50 virtual ~Definition() /*override*/ = default;
51 // NOLINTEND
52
53 public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static void buildSchema(
57 ::std::string const& name,
59 );
60 // NOLINTEND
61
62 public:
63 // destructor thunk
64 // NOLINTBEGIN
65
66 // NOLINTEND
67
68 public:
69 // vftables
70 // NOLINTBEGIN
71 MCAPI static void** $vftable();
72 // NOLINTEND
73 };
74
75public:
76 // member variables
77 // NOLINTBEGIN
78 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
79 ::ll::TypedStorage<4, 12, ::Vec3> mSniffingRadius;
80 ::ll::TypedStorage<4, 8, ::FloatRange> mCooldownRangeSeconds;
81 ::ll::TypedStorage<2, 2, ushort> mDurationTicks;
82 ::ll::TypedStorage<8, 8, ::Tick> mEndTick;
83 ::ll::TypedStorage<8, 8, ::Tick> mCooldownExpiryTick;
84 ::ll::TypedStorage<4, 4, float> mSuspicionRadiusHorizontal;
85 ::ll::TypedStorage<4, 4, float> mSuspicionRadiusVertical;
86 // NOLINTEND
87
88public:
89 // virtual functions
90 // NOLINTBEGIN
91 // vIndex: 1
92 virtual bool canUse() /*override*/;
93
94 // vIndex: 2
95 virtual bool canContinueToUse() /*override*/;
96
97 // vIndex: 4
98 virtual void start() /*override*/;
99
100 // vIndex: 5
101 virtual void stop() /*override*/;
102
103 // vIndex: 6
104 virtual void tick() /*override*/;
105
106 // vIndex: 7
107 virtual void appendDebugInfo(::std::string& str) const /*override*/;
108
109 // vIndex: 0
110 virtual ~SniffGoal() /*override*/ = default;
111 // NOLINTEND
112
113public:
114 // member functions
115 // NOLINTBEGIN
116 MCAPI ::std::vector<::DistanceSortedActor> _fetchNearbySniffableActors(::ActorType actorType) const;
117
118 MCAPI ::std::optional<::DistanceSortedActor> _fetchNearestSniffableActor() const;
119 // NOLINTEND
120
121public:
122 // destructor thunk
123 // NOLINTBEGIN
124
125 // NOLINTEND
126
127public:
128 // virtual function thunks
129 // NOLINTBEGIN
130 MCAPI bool $canUse();
131
132 MCAPI bool $canContinueToUse();
133
134 MCAPI void $start();
135
136 MCAPI void $stop();
137
138 MCFOLD void $tick();
139
140 MCAPI void $appendDebugInfo(::std::string& str) const;
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCAPI static void** $vftable();
147 // NOLINTEND
148};
Definition BaseGoalDefinition.h:10
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition SniffGoal.h:29
Definition SniffGoal.h:21
Definition Vec3.h:10
Definition DistanceSortedActor.h:10
Definition FloatRange.h:11
Definition Tick.h:5
Definition Alias.h:14