* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Container.h"
|
|
#include "ArrayWithLength.h"
|
|
|
|
class Merchant;
|
|
class Player;
|
|
class MerchantRecipe;
|
|
|
|
class MerchantContainer : public Container
|
|
{
|
|
private:
|
|
shared_ptr<Merchant> merchant;
|
|
ItemInstanceArray items;
|
|
shared_ptr<Player> player;
|
|
MerchantRecipe *activeRecipe;
|
|
int selectionHint;
|
|
|
|
public:
|
|
MerchantContainer(shared_ptr<Player> player, shared_ptr<Merchant> villager);
|
|
~MerchantContainer();
|
|
|
|
unsigned int getContainerSize();
|
|
shared_ptr<ItemInstance> getItem(unsigned int slot);
|
|
shared_ptr<ItemInstance> removeItem(unsigned int slot, int count);
|
|
|
|
private:
|
|
bool isPaymentSlot(int slot);
|
|
|
|
public:
|
|
shared_ptr<ItemInstance> removeItemNoUpdate(int slot);
|
|
void setItem(unsigned int slot, shared_ptr<ItemInstance> item);
|
|
wstring getName();
|
|
wstring getCustomName();
|
|
bool hasCustomName();
|
|
int getMaxStackSize();
|
|
bool stillValid(shared_ptr<Player> player);
|
|
void startOpen();
|
|
void stopOpen();
|
|
bool canPlaceItem(int slot, shared_ptr<ItemInstance> item);
|
|
void setChanged();
|
|
void updateSellItem();
|
|
MerchantRecipe *getActiveRecipe();
|
|
void setSelectionHint(int selectionHint);
|
|
}; |