LeviLamina
Loading...
Searching...
No Matches
NpcComponent Class Reference

Public Types

using TextFilter = ::std::function<::std::string(::std::string const&)>
 

Public Member Functions

NpcComponentoperator= (NpcComponent const &)
 
 NpcComponent (NpcComponent const &)
 
MCAPI NpcComponent (::NpcComponent &&rhs)
 
MCAPI void _defineEntityDataString (::Actor &owner, ::ActorDataIDs id)
 
MCAPI void _deserializeData (::Json::Value const &npcData)
 
MCAPI void _loadData (::Actor &owner)
 
MCAPI void addAdditionalSaveData (::CompoundTag &tag, ::Actor const &owner) const
 
MCAPI void executeClosingCommands (::Actor &owner, ::Player &sourcePlayer, ::std::string const &sceneName)
 
MCAPI void executeCommandAction (::Actor &owner, ::Player &sourcePlayer, int actionIndex, ::std::string const &sceneName)
 
MCAPI void executeOpeningCommands (::Actor &owner, ::Player &sourcePlayer, ::std::string const &sceneName)
 
MCAPI ::std::vector< int > getCommandCounts () const
 
MCAPI bool getInteraction (::Actor &owner, ::Player &player, ::ActorInteraction &interaction)
 
MCAPI::std::string const & getInteractiveText (::Actor &owner) const
 
MCAPI::std::string const & getSceneStateForPlayer (::ActorUniqueID const &playerID) const
 
MCAPI void initClientOnlyData (::Actor &owner)
 
MCAPI void initFromDefinition (::Actor &owner)
 
MCAPI void loadActions (::Actor &owner)
 
MCAPI void loadInteractiveRawText (::Actor &owner)
 
MCAPI::NpcComponent & operator= (::NpcComponent &&rhs)
 
MCAPI void readAdditionalSaveData (::Actor &owner, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
 
MCAPI::std::string sanitizeRawText (::std::string const &rawText) const
 
MCAPI void setActions (::Actor &owner, ::std::vector<::std::variant<::npc::CommandAction, ::npc::UrlAction > > &&newActions)
 
MCAPI bool setDialogueScene (::Actor &owner, ::std::string const &sceneName)
 
MCAPI void setInteractiveText (::Actor &owner, ::std::string const &text, bool setLocal)
 
MCAPI void setName (::Actor &owner, ::std::string const &name, bool setLocal)
 
MCAPI bool setSkinIndex (::Actor &owner, int skinIndex, bool setLocal)
 
MCAPI void * $ctor ()
 
MCAPI void * $ctor (::NpcComponent &&rhs)
 
MCAPI void $dtor ()
 

Static Public Member Functions

static MCAPI ::std::string const & ACTIONS_TAG ()
 
static MCAPI ::std::string const & INTERACTIVE_TAG ()
 
static MCAPI ::std::string const & NAME_RAW_TEXT_TAG ()
 
static MCAPI ::std::string const & PLAYER_ID_TAG ()
 
static MCAPI ::std::string const & PLAYER_SCENE_MAPPING_TAG ()
 
static MCAPI ::std::string const & SCENE_NAME_TAG ()
 
static MCAPI ::std::string const & URL_TAG ()
 
static MCAPI void ** $vftable ()
 

Public Attributes

::ll::TypedStorage< 4, 4, int > mCurrentSkin
 
::ll::TypedStorage< 4, 36, ::NpcGUIOffsetmPortraitOffsets
 
::ll::TypedStorage< 4, 36, ::NpcGUIOffsetmPickerOffsets
 
::ll::TypedStorage< 8, 24, ::std::vector<::SkinData > > mNPCSkins
 
::ll::TypedStorage< 8, 48, ::npc::ActionContainermActionsContainer
 
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ActorUniqueID, ::std::string > > mPlayerSceneState
 
::ll::TypedStorage< 8, 32, ::std::string > mDefaultSceneId
 
::ll::TypedStorage< 8, 40, ::std::optional<::std::string > > mInteractText
 
::ll::TypedStorage< 8, 64, ::std::function<::std::string(::std::string const &)> > mInteractTextFilter
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::NpcI18nObserver > > mNpcI18nObserver
 
::ll::TypedStorage< 1, 1, bool > mIsGloballyAccessed
 

Member Function Documentation

◆ $vftable()

static MCAPI void ** NpcComponent::$vftable ( )
static
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: