Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
GoalSelectorComponent Class Reference

Public Types

using GoalCondition = bool (*)(::std::pair<::GoalId, ::PrioritizedGoal>&)
using GoalElement = ::std::pair<::GoalId, ::PrioritizedGoal>
using GoalMap = ::std::vector<::std::pair<::GoalId, ::PrioritizedGoal>>

Public Member Functions

MCAPI void addGoal (int priority, ::std::unique_ptr<::BaseGoal > goal)
MCAPI void buildDebugInfo (::std::string &out) const
MCAPI void clearAllGoals ()
MCAPI void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCAPI bool removeGoal (::GoalId typeId)
MCAPI void stopNonTargetedGoals ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::GoalId, ::PrioritizedGoal > > > mGoalMap

Member Function Documentation

◆ addGoal()

MCAPI void GoalSelectorComponent::addGoal ( int priority,
::std::unique_ptr<::BaseGoal > goal )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ buildDebugInfo()

MCAPI void GoalSelectorComponent::buildDebugInfo ( ::std::string & out) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ clearAllGoals()

MCAPI void GoalSelectorComponent::clearAllGoals ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ onPlayerDimensionChanged()

MCAPI void GoalSelectorComponent::onPlayerDimensionChanged ( ::Player * player,
::DimensionType fromDimension,
::DimensionType toDimension )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeGoal()

MCAPI bool GoalSelectorComponent::removeGoal ( ::GoalId typeId)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ stopNonTargetedGoals()

MCAPI void GoalSelectorComponent::stopNonTargetedGoals ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: