LeviLamina
Loading...
Searching...
No Matches
WorkGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/actor/ActorDefinitionTrigger.h"
8#include "mc/world/actor/ai/goal/MoveToPOIGoal.h"
9#include "mc/world/actor/ai/village/POIType.h"
10
11// auto generated forward declare list
12// clang-format off
13class Mob;
14// clang-format on
15
16class WorkGoal : public ::MoveToPOIGoal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, ::POIType> mPOIType;
21 ::ll::TypedStorage<4, 4, int> mMinSoundDelay;
22 ::ll::TypedStorage<4, 4, int> mMaxSoundDelay;
23 ::ll::TypedStorage<4, 4, int> mGoalCooldown;
24 ::ll::TypedStorage<4, 4, int> mActiveTime;
25 ::ll::TypedStorage<1, 1, bool> mCanWorkInRain;
26 ::ll::TypedStorage<4, 4, int> mWorkInRainTolerance;
27 ::ll::TypedStorage<4, 4, int> mCooldownTick;
28 ::ll::TypedStorage<4, 4, int> mActiveTick;
29 ::ll::TypedStorage<4, 4, int> mSoundTick;
30 ::ll::TypedStorage<4, 4, int> mSoundTickMax;
31 ::ll::TypedStorage<1, 1, bool> mCanRainAtLocation;
32 ::ll::TypedStorage<4, 4, int> mRainCheckCooldownTick;
33 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnArrival;
34 ::ll::TypedStorage<1, 1, bool> mHasEverReachedJobsite;
35 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 WorkGoal();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual void appendDebugInfo(::std::string& str) const /*override*/;
46
47 virtual bool canUse() /*override*/;
48
49 virtual bool canContinueToUse() /*override*/;
50
51 virtual void start() /*override*/;
52
53 virtual void stop() /*override*/;
54
55 virtual void tick() /*override*/;
56
57 virtual void useWorkstation();
58
59 virtual ~WorkGoal() /*override*/ = default;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI explicit WorkGoal(::Mob& mob);
66
67 MCAPI bool _isInsideOrIsNotRaining();
68
69 MCAPI void playPOISoundEvent() const;
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::Mob& mob);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI void $appendDebugInfo(::std::string& str) const;
82
83 MCAPI bool $canUse();
84
85 MCAPI bool $canContinueToUse();
86
87 MCAPI void $start();
88
89 MCAPI void $stop();
90
91 MCAPI void $tick();
92
93 MCAPI void $useWorkstation();
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition Mob.h:51
static MCAPI void ** $vftable()