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;
14struct GoalId;
15// clang-format on
16
17class WorkGoal : public ::MoveToPOIGoal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, ::POIType> mPOIType;
22 ::ll::TypedStorage<4, 4, int> mMinSoundDelay;
23 ::ll::TypedStorage<4, 4, int> mMaxSoundDelay;
24 ::ll::TypedStorage<4, 4, int> mGoalCooldown;
25 ::ll::TypedStorage<4, 4, int> mActiveTime;
26 ::ll::TypedStorage<1, 1, bool> mCanWorkInRain;
27 ::ll::TypedStorage<4, 4, int> mWorkInRainTolerance;
28 ::ll::TypedStorage<4, 4, int> mCooldownTick;
29 ::ll::TypedStorage<4, 4, int> mActiveTick;
30 ::ll::TypedStorage<4, 4, int> mSoundTick;
31 ::ll::TypedStorage<4, 4, int> mSoundTickMax;
32 ::ll::TypedStorage<1, 1, bool> mCanRainAtLocation;
33 ::ll::TypedStorage<4, 4, int> mRainCheckCooldownTick;
34 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnArrival;
35 ::ll::TypedStorage<1, 1, bool> mHasEverReachedJobsite;
36 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 WorkGoal();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual void appendDebugInfo(::std::string& str) const /*override*/;
47
48 virtual bool canUse() /*override*/;
49
50 virtual bool canContinueToUse() /*override*/;
51
52 virtual void start() /*override*/;
53
54 virtual void stop() /*override*/;
55
56 virtual void tick() /*override*/;
57
58 virtual void useWorkstation();
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI WorkGoal(::Mob& mob, ::std::string name, ::GoalId const& goalId);
65
66 MCAPI void playPOISoundEvent() const;
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::Mob& mob, ::std::string name, ::GoalId const& goalId);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI void $appendDebugInfo(::std::string& str) const;
79
80 MCAPI bool $canUse();
81
82 MCAPI bool $canContinueToUse();
83
84 MCAPI void $start();
85
86 MCAPI void $stop();
87
88 MCAPI void $tick();
89
90 MCAPI void $useWorkstation();
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition Mob.h:56
static MCAPI void ** $vftable()
Definition GoalId.h:5