the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Merchant.h"
4
5class MerchantContainer;
6class MerchantRecipeList;
7class MerchantRecipe;
8
9class ClientSideMerchant : public Merchant, public enable_shared_from_this<ClientSideMerchant>
10{
11private:
12 MerchantContainer *container;
13 shared_ptr<Player> source;
14 MerchantRecipeList *currentOffers;
15 wstring m_name;
16
17public:
18 ClientSideMerchant(shared_ptr<Player> source, const wstring &name);
19 ~ClientSideMerchant();
20
21 void createContainer(); // 4J Added
22 Container *getContainer();
23 shared_ptr<Player> getTradingPlayer();
24 void setTradingPlayer(shared_ptr<Player> player);
25 MerchantRecipeList *getOffers(shared_ptr<Player> forPlayer);
26 void overrideOffers(MerchantRecipeList *recipeList);
27 void notifyTrade(MerchantRecipe *activeRecipe);
28 void notifyTradeUpdated(shared_ptr<ItemInstance> item);
29 wstring getDisplayName();
30};