LeviLamina
Loading...
Searching...
No Matches
DigGoal.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/ai/goal/BaseGoalDefinition.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9
10// auto generated forward declare list
11// clang-format off
13class Mob;
14struct Tick;
15namespace JsonUtil { class EmptyClass; }
16// clang-format on
17
18class DigGoal : public ::Goal {
19public:
20 // DigGoal inner types declare
21 // clang-format off
22 class Definition;
23 // clang-format on
24
25 // DigGoal inner types define
26 enum class CanUseResult : int {
27 CanDig = 0,
28 IsDigging = 1,
29 NamedAndNotAllowedToDigWhenNamed = 2,
30 NotOnGoundOrInWaterOrInLava = 3,
31 CanSeeDaylightAndShouldDigInDaylight = 4,
32 DisturbedByVibration = 5,
33 DisturbedBySuspicion = 6,
34 IdlingBeforeStartingGoalAgain = 7,
35 };
36
38 public:
39 // member variables
40 // NOLINTBEGIN
48 // NOLINTEND
49
50 public:
51 // prevent constructor by default
52 Definition& operator=(Definition const&);
53 Definition(Definition const&);
54 Definition();
55
56 public:
57 // virtual functions
58 // NOLINTBEGIN
59 // vIndex: 0
60 virtual ~Definition() /*override*/ = default;
61 // NOLINTEND
62
63 public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static void buildSchema(
67 ::std::string const& name,
69 );
70 // NOLINTEND
71
72 public:
73 // destructor thunk
74 // NOLINTBEGIN
75
76 // NOLINTEND
77
78 public:
79 // vftables
80 // NOLINTBEGIN
81 MCAPI static void** $vftable();
82 // NOLINTEND
83 };
84
85public:
86 // member variables
87 // NOLINTBEGIN
88 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
89 ::ll::TypedStorage<8, 8, ::Tick> mGoalInitializationTick;
90 ::ll::TypedStorage<4, 4, uint> mIdleTimeTicks;
91 ::ll::TypedStorage<2, 2, ushort> mDurationTicks;
92 ::ll::TypedStorage<8, 8, ::Tick> mEndTick;
93 ::ll::TypedStorage<1, 1, bool> mAllowDigWhenNamed;
94 ::ll::TypedStorage<1, 1, bool> mVibrationIsDisturbance;
95 ::ll::TypedStorage<1, 1, bool> mSuspicionIsDisturbance;
96 ::ll::TypedStorage<1, 1, bool> mDigsInDaylight;
97 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnStartEvent;
98 // NOLINTEND
99
100public:
101 // virtual functions
102 // NOLINTBEGIN
103 // vIndex: 1
104 virtual bool canUse() /*override*/;
105
106 // vIndex: 2
107 virtual bool canContinueToUse() /*override*/;
108
109 // vIndex: 4
110 virtual void start() /*override*/;
111
112 // vIndex: 5
113 virtual void stop() /*override*/;
114
115 // vIndex: 6
116 virtual void tick() /*override*/;
117
118 // vIndex: 7
119 virtual void appendDebugInfo(::std::string& str) const /*override*/;
120
121 // vIndex: 0
122 virtual ~DigGoal() /*override*/ = default;
123 // NOLINTEND
124
125public:
126 // member functions
127 // NOLINTBEGIN
128 MCAPI ::DigGoal::CanUseResult _canUse() const;
129 // NOLINTEND
130
131public:
132 // destructor thunk
133 // NOLINTBEGIN
134
135 // NOLINTEND
136
137public:
138 // virtual function thunks
139 // NOLINTBEGIN
140 MCAPI bool $canUse();
141
142 MCAPI bool $canContinueToUse();
143
144 MCAPI void $start();
145
146 MCAPI void $stop();
147
148 MCFOLD void $tick();
149
150 MCAPI void $appendDebugInfo(::std::string& str) const;
151 // NOLINTEND
152
153public:
154 // vftables
155 // NOLINTBEGIN
156 MCAPI static void** $vftable();
157 // NOLINTEND
158};
Definition ActorDefinitionTrigger.h:5
Definition BaseGoalDefinition.h:10
Definition DigGoal.h:37
Definition DigGoal.h:18
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Tick.h:5
Definition Alias.h:14