Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BaseGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Player;
8struct DimensionType;
9struct GoalId;
10// clang-format on
11
12class BaseGoal {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<8, 32, ::std::string> mName;
17 ::ll::TypedStorage<4, 4, int> mRequiredControlFlags;
18 ::ll::TypedStorage<2, 2, ushort> mTypeId;
19 // NOLINTEND
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ~BaseGoal();
25
26 virtual bool canUse() = 0;
27
28 virtual bool canContinueToUse();
29
30 virtual bool canBeInterrupted();
31
32 virtual void start();
33
34 virtual void stop();
35
36 virtual void tick();
37
38 virtual void appendDebugInfo(::std::string& str) const = 0;
39
40 virtual bool isTargetGoal() const;
41
42 virtual void onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension);
43
44 virtual ::GoalId getGoalId() const;
45 // NOLINTEND
46
47public:
48 // destructor thunk
49 // NOLINTBEGIN
50 MCNAPI void $dtor();
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI bool $canContinueToUse();
57
58 MCNAPI bool $canBeInterrupted();
59
60 MCNAPI void $start();
61
62 MCNAPI void $stop();
63
64 MCNAPI void $tick();
65
66 MCNAPI bool $isTargetGoal() const;
67
68 MCNAPI void $onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension);
69
70 MCNAPI ::GoalId $getGoalId() const;
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition BaseGoal.h:12
MCAPI void $start()
MCAPI void $tick()
MCAPI void $onPlayerDimensionChanged(::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCAPI bool $isTargetGoal() const
MCAPI void $dtor()
MCAPI bool $canBeInterrupted()
MCAPI bool $canContinueToUse()
MCAPI::GoalId $getGoalId() const
MCAPI void $stop()
static MCAPI void ** $vftable()
Definition Player.h:131
Definition DimensionType.h:5
Definition GoalId.h:5