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/math/Vec3.h"
7#include "mc/deps/shared_types/versionless/FloatRange.h"
8#include "mc/world/actor/ActorType.h"
9#include "mc/world/actor/ai/goal/Goal.h"
10#include "mc/world/level/Tick.h"
11
12// auto generated forward declare list
13// clang-format off
14class Mob;
16// clang-format on
17
18class SniffGoal : public ::Goal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<4, 12, ::Vec3> mSniffingRadius;
24 ::ll::TypedStorage<4, 8, ::SharedTypes::FloatRange> mCooldownRangeSeconds;
25 ::ll::TypedStorage<2, 2, ushort> mDurationTicks;
26 ::ll::TypedStorage<8, 8, ::Tick> mEndTick;
27 ::ll::TypedStorage<8, 8, ::Tick> mCooldownExpiryTick;
28 ::ll::TypedStorage<4, 4, float> mSuspicionRadiusHorizontal;
29 ::ll::TypedStorage<4, 4, float> mSuspicionRadiusVertical;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 SniffGoal& operator=(SniffGoal const&);
35 SniffGoal(SniffGoal const&);
36 SniffGoal();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual bool canUse() /*override*/;
43
44 // vIndex: 2
45 virtual bool canContinueToUse() /*override*/;
46
47 // vIndex: 4
48 virtual void start() /*override*/;
49
50 // vIndex: 5
51 virtual void stop() /*override*/;
52
53 // vIndex: 6
54 virtual void tick() /*override*/;
55
56 // vIndex: 7
57 virtual void appendDebugInfo(::std::string& str) const /*override*/;
58
59 // vIndex: 0
60 virtual ~SniffGoal() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI ::std::vector<::DistanceSortedActor> _fetchNearbySniffableActors(::ActorType actorType) const;
67
68 MCAPI ::std::optional<::DistanceSortedActor> _fetchNearestSniffableActor() const;
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI bool $canUse();
75
76 MCAPI bool $canContinueToUse();
77
78 MCAPI void $start();
79
80 MCAPI void $stop();
81
82 MCFOLD void $tick();
83
84 MCAPI void $appendDebugInfo(::std::string& str) const;
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition Goal.h:14
Definition Mob.h:47
Definition SniffGoal.h:18
static MCAPI void ** $vftable()
Definition DistanceSortedActor.h:10