24class EconomyTradeableComponent {
28 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastTradingPlayer;
29 ::ll::TypedStorage<4, 4, int> mUpdateMerchantTimer;
30 ::ll::TypedStorage<1, 1, bool> mAddRecipeOnUpdate;
31 ::ll::TypedStorage<4, 4, int> mRiches;
32 ::ll::TypedStorage<8, 8, ::Actor&> mOwner;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MerchantRecipeList>> mOffers;
34 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
35 ::ll::TypedStorage<8, 32, ::std::string> mTradeTablePath;
36 ::ll::TypedStorage<1, 1, bool> mUseNewTradeScreen;
37 ::ll::TypedStorage<4, 4, int> mHeroDemandDiscount;
38 ::ll::TypedStorage<4, 8, ::IntRange> mCuredDiscount;
39 ::ll::TypedStorage<4, 8, ::IntRange> mMaxCuredDiscount;
40 ::ll::TypedStorage<4, 4, int> mNearbyCuredDiscount;
41 ::ll::TypedStorage<4, 4, int> mMaxNearbyCuredDiscount;
42 ::ll::TypedStorage<1, 1, bool> mPersistTrades;
43 ::ll::TypedStorage<1, 1, bool> mConvertTradesEconomy;
44 ::ll::TypedStorage<1, 1, bool> mShowTradeScreen;
45 ::ll::TypedStorage<1, 1, bool> mUseLegacyPrices;
46 ::ll::TypedStorage<8, 32, ::std::string> mGeneratedTablePath;
47 ::ll::TypedStorage<1, 1, bool> mConvertedFromVillagerV1;
48 ::ll::TypedStorage<4, 4, int> mDiscountDegradationTimeStamp;
53 EconomyTradeableComponent& operator=(EconomyTradeableComponent
const&);
54 EconomyTradeableComponent(EconomyTradeableComponent
const&);
55 EconomyTradeableComponent();
62 MCAPI
bool _generateTrades();
76 MCAPI ::MerchantRecipeList* getOffers();
81 MCNAPI ::std::vector<uint> getTradeExpRequirements()
const;
98 MCAPI
void notifyTrade(
int recipeIndex,
int numTrades);
104 MCAPI
void resupplyTrades();