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
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 PlayDefinition& operator=(PlayDefinition const&);
46
47 public:
48 // virtual functions
49 // NOLINTBEGIN
50 // vIndex: 0
51 virtual ~PlayDefinition() /*override*/ = default;
52 // NOLINTEND
53
54 public:
55 // static functions
56 // NOLINTBEGIN
57 MCNAPI static void buildSchema(
58 ::std::string const& name,
60 root
61 );
62 // NOLINTEND
63
64 public:
65 // vftables
66 // NOLINTBEGIN
67 MCNAPI static void** $vftable();
68 // NOLINTEND
69 };
70
71public:
72 // member variables
73 // NOLINTBEGIN
74 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
75 ::ll::TypedStorage<4, 4, int> mMaxPlayDurationTicks;
76 ::ll::TypedStorage<4, 4, float> mChanceToStart;
77 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mFriendTypes;
78 ::ll::TypedStorage<4, 12, ::Vec3> mFriendSearchArea;
79 ::ll::TypedStorage<4, 4, int> mRandomPosSearchRange;
80 ::ll::TypedStorage<4, 4, int> mRandomPosSearchHeight;
81 ::ll::TypedStorage<4, 4, int> mFollowDistanceInBlocksSquared;
82 ::ll::TypedStorage<4, 4, int> mCurrentPlayDurationTicks;
83 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
84 ::ll::TypedStorage<8, 40, ::TempEPtr<::Mob>> mFollowFriend;
85 // NOLINTEND
86
87public:
88 // prevent constructor by default
89 PlayGoal& operator=(PlayGoal const&);
90 PlayGoal(PlayGoal const&);
91 PlayGoal();
92
93public:
94 // virtual functions
95 // NOLINTBEGIN
96 // vIndex: 1
97 virtual bool canUse() /*override*/;
98
99 // vIndex: 2
100 virtual bool canContinueToUse() /*override*/;
101
102 // vIndex: 4
103 virtual void start() /*override*/;
104
105 // vIndex: 5
106 virtual void stop() /*override*/;
107
108 // vIndex: 6
109 virtual void tick() /*override*/;
110
111 // vIndex: 7
112 virtual void appendDebugInfo(::std::string& str) const /*override*/;
113
114 // vIndex: 0
115 virtual ~PlayGoal() /*override*/ = default;
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121 MCNAPI bool $canUse();
122
123 MCNAPI bool $canContinueToUse();
124
125 MCNAPI void $start();
126
127 MCNAPI void $stop();
128
129 MCNAPI void $tick();
130
131 MCNAPI void $appendDebugInfo(::std::string& str) const;
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCNAPI static void** $vftable();
138 // NOLINTEND
139};
Definition BaseGoalDefinition.h:10
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition PlayGoal.h:27
static MCAPI void ** $vftable()
static MCAPI void buildSchema(::std::string const &name, ::std::shared_ptr<::JsonUtil::JsonSchemaObjectNode<::JsonUtil::EmptyClass, ::PlayGoal::PlayDefinition > > &root)
Definition PlayGoal.h:19
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI void $stop()
MCAPI void $tick()
MCAPI bool $canUse()
static MCAPI void ** $vftable()
MCAPI void $start()
MCAPI bool $canContinueToUse()
Definition MobDescriptor.h:5
Definition Alias.h:14