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

Public Member Functions

EconomyTradeableComponent & operator= (EconomyTradeableComponent const &)
 EconomyTradeableComponent (EconomyTradeableComponent const &)
MCAPI EconomyTradeableComponent (::Actor &owner)
MCAPI bool _generateTrades ()
MCAPI::TradeTable * _getTradeTable ()
MCAPI void addAdditionalSaveData (::CompoundTag &tag) const
MCAPI::UpdateTradePacket createDataPacket (::ContainerID containerID)
MCAPI void fixVillagerTierToMatchTradeList (::MerchantRecipeList *oldOffers)
MCAPI::IntRange getCurrentCuredDiscount () const
MCAPI::Interaction getInteraction (::Player &player)
MCAPI::MerchantRecipeList * getOffers ()
MCAPI uint getTradeExpForCurrentLevel () const
MCAPI uint getTradeTier () const
MCAPI bool hasSupplyRemaining () const
MCAPI void initFromDefinition ()
MCAPI void initFromDefinition (::SharedTypes::v1_26_60::EconomyTradeableComponentDefinition const &definition)
MCAPI::std::string const & loadDisplayName ()
MCAPI void matchExpAndTier ()
MCAPI void newServerAiStep ()
MCAPI void notifyTrade (int recipeIndex, int numTrades)
MCAPI void readAdditionalSaveData (::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void reloadComponent ()
MCAPI void resupplyTrades ()
MCAPI void setNearbyCuredDiscount (int discount)
MCAPI void setOffers (::MerchantRecipeList &offers)
MCAPI void tickDiscountDegradationTimer (::Tick currentTick)
MCAPI void tryIncrementCuredDiscount ()
MCAPI void tryIncrementNearbyCuredDiscount ()
MCAPI void tryToTransferOldOffers (::MerchantRecipeList *oldOffers)
MCAPI ~EconomyTradeableComponent ()
MCAPI void * $ctor (::Actor &owner)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 8, ::ActorUniqueID > mLastTradingPlayer
::ll::TypedStorage< 4, 4, int > mUpdateMerchantTimer
::ll::TypedStorage< 1, 1, bool > mAddRecipeOnUpdate
::ll::TypedStorage< 4, 4, int > mRiches
::ll::TypedStorage< 8, 8, ::Actor & > mOwner
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::MerchantRecipeList > > mOffers
::ll::TypedStorage< 8, 32, ::std::string > mDisplayName
::ll::TypedStorage< 8, 32, ::std::string > mTradeTablePath
::ll::TypedStorage< 1, 1, bool > mUseNewTradeScreen
::ll::TypedStorage< 4, 4, int > mHeroDemandDiscount
::ll::TypedStorage< 4, 8, ::IntRange > mCuredDiscount
::ll::TypedStorage< 4, 8, ::IntRange > mMaxCuredDiscount
::ll::TypedStorage< 4, 4, int > mNearbyCuredDiscount
::ll::TypedStorage< 4, 4, int > mMaxNearbyCuredDiscount
::ll::TypedStorage< 1, 1, bool > mPersistTrades
::ll::TypedStorage< 1, 1, bool > mConvertTradesEconomy
::ll::TypedStorage< 1, 1, bool > mShowTradeScreen
::ll::TypedStorage< 1, 1, bool > mUseLegacyPrices
::ll::TypedStorage< 8, 32, ::std::string > mGeneratedTablePath
::ll::TypedStorage< 1, 1, bool > mConvertedFromVillagerV1
::ll::TypedStorage< 4, 4, int > mDiscountDegradationTimeStamp

Constructor & Destructor Documentation

◆ EconomyTradeableComponent()

MCAPI EconomyTradeableComponent::EconomyTradeableComponent ( ::Actor & owner)
explicit
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.

◆ ~EconomyTradeableComponent()

MCAPI EconomyTradeableComponent::~EconomyTradeableComponent ( )
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.

Member Function Documentation

◆ _getTradeTable()

MCAPI::TradeTable * EconomyTradeableComponent::_getTradeTable ( )
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.

◆ addAdditionalSaveData()

MCAPI void EconomyTradeableComponent::addAdditionalSaveData ( ::CompoundTag & tag) 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.

◆ createDataPacket()

MCAPI::UpdateTradePacket EconomyTradeableComponent::createDataPacket ( ::ContainerID containerID)
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.

◆ fixVillagerTierToMatchTradeList()

MCAPI void EconomyTradeableComponent::fixVillagerTierToMatchTradeList ( ::MerchantRecipeList * oldOffers)
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.

◆ getCurrentCuredDiscount()

MCAPI::IntRange EconomyTradeableComponent::getCurrentCuredDiscount ( ) 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.

◆ getInteraction()

MCAPI::Interaction EconomyTradeableComponent::getInteraction ( ::Player & player)
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.

◆ getTradeExpForCurrentLevel()

MCAPI uint EconomyTradeableComponent::getTradeExpForCurrentLevel ( ) 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.

◆ getTradeTier()

MCAPI uint EconomyTradeableComponent::getTradeTier ( ) 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.

◆ hasSupplyRemaining()

MCAPI bool EconomyTradeableComponent::hasSupplyRemaining ( ) 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.

◆ initFromDefinition() [1/2]

MCAPI void EconomyTradeableComponent::initFromDefinition ( )
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.

◆ initFromDefinition() [2/2]

MCAPI void EconomyTradeableComponent::initFromDefinition ( ::SharedTypes::v1_26_60::EconomyTradeableComponentDefinition const & definition)
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.

◆ loadDisplayName()

MCAPI::std::string const & EconomyTradeableComponent::loadDisplayName ( )
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.

◆ matchExpAndTier()

MCAPI void EconomyTradeableComponent::matchExpAndTier ( )
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.

◆ newServerAiStep()

MCAPI void EconomyTradeableComponent::newServerAiStep ( )
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.

◆ readAdditionalSaveData()

MCAPI void EconomyTradeableComponent::readAdditionalSaveData ( ::CompoundTag const & tag,
::DataLoadHelper & dataLoadHelper )
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.

◆ reloadComponent()

MCAPI void EconomyTradeableComponent::reloadComponent ( )
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.

◆ setNearbyCuredDiscount()

MCAPI void EconomyTradeableComponent::setNearbyCuredDiscount ( int discount)
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.

◆ setOffers()

MCAPI void EconomyTradeableComponent::setOffers ( ::MerchantRecipeList & offers)
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.

◆ tickDiscountDegradationTimer()

MCAPI void EconomyTradeableComponent::tickDiscountDegradationTimer ( ::Tick currentTick)
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.

◆ tryIncrementCuredDiscount()

MCAPI void EconomyTradeableComponent::tryIncrementCuredDiscount ( )
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.

◆ tryIncrementNearbyCuredDiscount()

MCAPI void EconomyTradeableComponent::tryIncrementNearbyCuredDiscount ( )
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.

◆ tryToTransferOldOffers()

MCAPI void EconomyTradeableComponent::tryToTransferOldOffers ( ::MerchantRecipeList * oldOffers)
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.

◆ $ctor()

MCAPI void * EconomyTradeableComponent::$ctor ( ::Actor & owner)
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.

◆ $dtor()

MCAPI void EconomyTradeableComponent::$dtor ( )
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: