LeviLamina
Loading...
Searching...
No Matches
MingleGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components/MingleComponent.h"
7#include "mc/world/actor/ActorDefinitionIdentifier.h"
8#include "mc/world/actor/ai/goal/MoveToPOIGoal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class MingleComponent;
14struct ActorUniqueID;
15// clang-format on
16
17class MingleGoal : public ::MoveToPOIGoal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mCooldownTicks;
22 ::ll::TypedStorage<4, 4, int> mCooldownTicksMax;
23 ::ll::TypedStorage<4, 4, int> mMingleTicks;
24 ::ll::TypedStorage<4, 4, int> mMingleTicksMax;
25 ::ll::TypedStorage<4, 4, int> mAvailableTicks;
26 ::ll::TypedStorage<4, 4, int> mAvailableTicksMax;
27 ::ll::TypedStorage<4, 4, int> mSpeakInterval;
28 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mDesiredPartnerType;
29 ::ll::TypedStorage<4, 4, float> mMingleDistanceSquared;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual bool canUse() /*override*/;
36
37 virtual bool canContinueToUse() /*override*/;
38
39 virtual void start() /*override*/;
40
41 virtual void stop() /*override*/;
42
43 virtual void tick() /*override*/;
44
45 virtual void appendDebugInfo(::std::string& str) const /*override*/;
46
47 virtual ~MingleGoal() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI void _findNewPartner(::ActorUniqueID previousPartnerId);
54
55 MCAPI ::MingleComponent& _getMingleComponent() const;
56
57 MCAPI bool _tryPathToPartner(::Actor& partner);
58
59 MCAPI bool _validatePartnerState(
60 ::MingleComponent::MingleState expectedState,
61 ::MingleComponent& mingleComponent,
62 bool requireWithinInteractRange
63 );
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static ::MingleComponent* _tryGetMingleComponent(::Actor& actor);
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI bool $canUse();
76
77 MCAPI bool $canContinueToUse();
78
79 MCAPI void $start();
80
81 MCAPI void $stop();
82
83 MCAPI void $tick();
84
85 MCAPI void $appendDebugInfo(::std::string& str) const;
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition Actor.h:105
Definition MingleComponent.h:8
Definition MingleGoal.h:17
static MCAPI void ** $vftable()
Definition ActorUniqueID.h:5