LeviLamina
Loading...
Searching...
No Matches
LegacyTradeableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/ContainerID.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
13class CompoundTag;
14class DataLoadHelper;
16class Player;
18struct Trade;
19struct TradeTable;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, bool> mAddRecipeOnUpdate;
27 ::ll::TypedStorage<1, 1, bool> mResetLockedOnFirstTrade;
28 ::ll::TypedStorage<1, 1, bool> mWillingToBreed;
29 ::ll::TypedStorage<4, 4, int> mRiches;
30 ::ll::TypedStorage<4, 4, int> mTradeTier;
31 ::ll::TypedStorage<4, 4, int> mUpdateMerchantTimer;
32 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastPlayerTradeID;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MerchantRecipeList>> mOffers;
34 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
35 ::ll::TypedStorage<8, 24, ::std::vector<int>> mTradeRecipeFirstTime;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI ::TradeTable* _getTradeTable(::Actor& owner);
48
49 MCNAPI void _rearrangeTradeList(::Actor& owner, ::std::vector<::Trade>& tradeList, uint64 sampleCount);
50
51 MCNAPI bool _refreshTrades(::Actor& owner);
52
53 MCNAPI void _updateMaxTradeTier(::Actor& owner, int tradeTier);
54
55 MCNAPI void addAdditionalSaveData(::CompoundTag& tag) const;
56
57 MCNAPI ::UpdateTradePacket createDataPacket(::Actor& owner, ::ContainerID containerID);
58
59 MCNAPI bool getInteraction(::Actor& owner, ::Player& player, ::ActorInteraction& interaction);
60
61 MCNAPI void notifyTrade(::Actor& owner, int recipeIndex, int numTrades);
62
63 MCNAPI ::LegacyTradeableComponent& operator=(::LegacyTradeableComponent&&);
64
66
67 MCNAPI void restockAllRecipes(::Actor& owner);
68
69 MCNAPI void updateTradeTier(::Actor& owner);
70
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCNAPI void $dtor();
78 // NOLINTEND
79};
Definition ActorInteraction.h:5
Definition Actor.h:103
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition LegacyTradeableComponent.h:22
MCAPI::TradeTable * _getTradeTable(::Actor &owner)
MCAPI void readAdditionalSaveData(::Actor &owner, ::CompoundTag const &tag, ::DataLoadHelper &)
MCAPI::LegacyTradeableComponent & operator=(::LegacyTradeableComponent &&)
MCAPI void restockAllRecipes(::Actor &owner)
MCAPI bool _refreshTrades(::Actor &owner)
MCAPI void _rearrangeTradeList(::Actor &owner, ::std::vector<::Trade > &tradeList, uint64 sampleCount)
MCAPI void notifyTrade(::Actor &owner, int recipeIndex, int numTrades)
MCAPI bool getInteraction(::Actor &owner, ::Player &player, ::ActorInteraction &interaction)
MCAPI void _updateMaxTradeTier(::Actor &owner, int tradeTier)
MCAPI void addAdditionalSaveData(::CompoundTag &tag) const
MCAPI void updateTradeTier(::Actor &owner)
MCAPI::UpdateTradePacket createDataPacket(::Actor &owner, ::ContainerID containerID)
Definition MerchantRecipeList.h:13
Definition Player.h:119
Definition UpdateTradePacket.h:20
Definition TradeTable.h:5
Definition Trade.h:5