23class EconomyTradeableComponent {
27 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastTradingPlayer;
28 ::ll::TypedStorage<4, 4, int> mUpdateMerchantTimer;
29 ::ll::TypedStorage<1, 1, bool> mAddRecipeOnUpdate;
30 ::ll::TypedStorage<4, 4, int> mRiches;
31 ::ll::TypedStorage<8, 8, ::Actor&> mOwner;
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MerchantRecipeList>> mOffers;
33 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
34 ::ll::TypedStorage<8, 32, ::std::string> mGeneratedTablePath;
35 ::ll::TypedStorage<1, 1, bool> mConvertedFromVillagerV1;
36 ::ll::TypedStorage<4, 4, int> mDiscountDegradationTimeStamp;
41 EconomyTradeableComponent& operator=(EconomyTradeableComponent
const&);
42 EconomyTradeableComponent(EconomyTradeableComponent
const&);
43 EconomyTradeableComponent();
48 MCAPI
explicit EconomyTradeableComponent(
::Actor& owner);
50 MCAPI
bool _generateTrades();
52 MCAPI ::TradeTable* _getTradeTable();
56 MCAPI ::UpdateTradePacket createDataPacket(::ContainerID containerID);
60 MCAPI ::IntRange getCurrentCuredDiscount()
const;
62 MCAPI ::Interaction getInteraction(
::Player& player);
64 MCAPI ::MerchantRecipeList* getOffers();
66 MCAPI uint getTradeExpForCurrentLevel()
const;
69 MCAPI ::std::vector<uint> getTradeExpRequirements()
const;
72 MCAPI uint getTradeTier()
const;
74 MCAPI
bool hasSupplyRemaining()
const;
76 MCAPI ::std::string
const& loadDisplayName();
78 MCAPI
void matchExpAndTier();
80 MCAPI
void newServerAiStep();
82 MCAPI
void notifyTrade(
int recipeIndex,
int numTrades);
86 MCAPI
void reloadComponent();
88 MCAPI
void resupplyTrades();
94 MCAPI
void setNearbyCuredDiscount(
int discount);
98 MCAPI
void tickDiscountDegradationTimer(
::Tick currentTick);
100 MCAPI
void tryIncrementCuredDiscount();
102 MCAPI
void tryIncrementNearbyCuredDiscount();
110 MCAPI
void* $ctor(
::Actor& owner);