LeviLamina
Loading...
Searching...
No Matches
PlayGoal.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/util/json_util/JsonSchemaObjectNode.h"
8#include "mc/world/actor/TempEPtr.h"
9#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
10#include "mc/world/actor/ai/goal/Goal.h"
11
12// auto generated forward declare list
13// clang-format off
14class Mob;
15struct MobDescriptor;
16namespace JsonUtil { class EmptyClass; }
17// clang-format on
18
19class PlayGoal : public ::Goal {
20public:
21 // PlayGoal inner types declare
22 // clang-format off
23 class PlayDefinition;
24 // clang-format on
25
26 // PlayGoal inner types define
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
32 ::ll::TypedStorage<4, 4, float> mMaxPlayDurationSeconds;
33 ::ll::TypedStorage<4, 4, float> mChanceToStart;
34 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mFriendTypes;
35 ::ll::TypedStorage<4, 12, ::Vec3> mFriendSearchArea;
36 ::ll::TypedStorage<4, 4, int> mRandomPosSearchRange;
37 ::ll::TypedStorage<4, 4, int> mRandomPosSearchHeight;
38 ::ll::TypedStorage<4, 4, int> mFollowDistanceInBlocks;
39 // NOLINTEND
40
41 public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~PlayDefinition() /*override*/ = default;
46 // NOLINTEND
47
48 public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static void buildSchema(
52 ::std::string const& name,
54 root
55 );
56 // NOLINTEND
57
58 public:
59 // vftables
60 // NOLINTBEGIN
61 MCNAPI static void** $vftable();
62 // NOLINTEND
63 };
64
65public:
66 // member variables
67 // NOLINTBEGIN
68 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
69 ::ll::TypedStorage<4, 4, int> mMaxPlayDurationTicks;
70 ::ll::TypedStorage<4, 4, float> mChanceToStart;
71 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mFriendTypes;
72 ::ll::TypedStorage<4, 12, ::Vec3> mFriendSearchArea;
73 ::ll::TypedStorage<4, 4, int> mRandomPosSearchRange;
74 ::ll::TypedStorage<4, 4, int> mRandomPosSearchHeight;
75 ::ll::TypedStorage<4, 4, int> mFollowDistanceInBlocksSquared;
76 ::ll::TypedStorage<4, 4, int> mCurrentPlayDurationTicks;
77 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
78 ::ll::TypedStorage<8, 40, ::TempEPtr<::Mob>> mFollowFriend;
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 PlayGoal& operator=(PlayGoal const&);
84 PlayGoal(PlayGoal const&);
85 PlayGoal();
86
87public:
88 // virtual functions
89 // NOLINTBEGIN
90 // vIndex: 1
91 virtual bool canUse() /*override*/;
92
93 // vIndex: 2
94 virtual bool canContinueToUse() /*override*/;
95
96 // vIndex: 4
97 virtual void start() /*override*/;
98
99 // vIndex: 5
100 virtual void stop() /*override*/;
101
102 // vIndex: 6
103 virtual void tick() /*override*/;
104
105 // vIndex: 7
106 virtual void appendDebugInfo(::std::string& str) const /*override*/;
107
108 // vIndex: 0
109 virtual ~PlayGoal() /*override*/ = default;
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI bool $canUse();
116
117 MCAPI bool $canContinueToUse();
118
119 MCAPI void $start();
120
121 MCAPI void $stop();
122
123 MCAPI void $tick();
124
125 MCAPI void $appendDebugInfo(::std::string& str) const;
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133};
Definition BaseGoalDefinition.h:10
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition PlayGoal.h:27
static MCAPI void ** $vftable()
Definition PlayGoal.h:19
static MCAPI void ** $vftable()
Definition MobDescriptor.h:8