LeviLamina
Loading...
Searching...
No Matches
NapGoal.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/world/actor/ActorFilterGroup.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9#include "mc/world/level/Tick.h"
10
11// auto generated forward declare list
12// clang-format off
13class Mob;
14// clang-format on
15
16class NapGoal : public ::Goal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
21 ::ll::TypedStorage<8, 8, ::Tick> mCooldown;
22 ::ll::TypedStorage<8, 8, ::Tick> mDetectMobsTimer;
23 ::ll::TypedStorage<1, 1, bool> mInvalidCooldown;
24 ::ll::TypedStorage<4, 4, int const> mNapCooldownMin;
25 ::ll::TypedStorage<4, 4, int const> mNapCooldownMax;
26 ::ll::TypedStorage<4, 12, ::Vec3 const> mDetectRange;
27 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mCanNapFilters;
28 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mWakeMobExceptions;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 NapGoal& operator=(NapGoal const&);
34 NapGoal(NapGoal const&);
35 NapGoal();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 1
41 virtual bool canUse() /*override*/;
42
43 // vIndex: 4
44 virtual void start() /*override*/;
45
46 // vIndex: 5
47 virtual void stop() /*override*/;
48
49 // vIndex: 2
50 virtual bool canContinueToUse() /*override*/;
51
52 // vIndex: 7
53 virtual void appendDebugInfo(::std::string& str) const /*override*/;
54
55 // vIndex: 0
56 virtual ~NapGoal() /*override*/ = default;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCNAPI NapGoal(
63 ::Mob& mob,
64 float cooldownTimeMin,
65 float cooldownTimeMax,
66 float detectMobDistXZ,
67 float detectMobDistY,
68 ::ActorFilterGroup const& canNapFilters,
69 ::ActorFilterGroup const& wakeMobExceptions
70 );
71
72 MCNAPI bool _canSleep(::Tick const& currentTick) const;
73
74 MCNAPI bool _detectsMobs() const;
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCNAPI void* $ctor(
81 ::Mob& mob,
82 float cooldownTimeMin,
83 float cooldownTimeMax,
84 float detectMobDistXZ,
85 float detectMobDistY,
86 ::ActorFilterGroup const& canNapFilters,
87 ::ActorFilterGroup const& wakeMobExceptions
88 );
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCNAPI bool $canUse();
95
96 MCNAPI void $start();
97
98 MCNAPI void $stop();
99
100 MCNAPI bool $canContinueToUse();
101
102 MCNAPI void $appendDebugInfo(::std::string& str) const;
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCNAPI static void** $vftable();
109 // NOLINTEND
110};
Definition ActorFilterGroup.h:16
Definition Goal.h:14
Definition Mob.h:47
Definition NapGoal.h:16
MCAPI bool _canSleep(::Tick const &currentTick) const
MCAPI void $stop()
MCAPI bool _detectsMobs() const
MCAPI bool $canContinueToUse()
MCAPI NapGoal(::Mob &mob, float cooldownTimeMin, float cooldownTimeMax, float detectMobDistXZ, float detectMobDistY, ::ActorFilterGroup const &canNapFilters, ::ActorFilterGroup const &wakeMobExceptions)
static MCAPI void ** $vftable()
MCAPI void $start()
MCAPI bool $canUse()
MCAPI void * $ctor(::Mob &mob, float cooldownTimeMin, float cooldownTimeMax, float detectMobDistXZ, float detectMobDistY, ::ActorFilterGroup const &canNapFilters, ::ActorFilterGroup const &wakeMobExceptions)
MCAPI void $appendDebugInfo(::std::string &str) const
Definition Tick.h:5