From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/Merchant.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Minecraft.World/Merchant.h (limited to 'Minecraft.World/Merchant.h') diff --git a/Minecraft.World/Merchant.h b/Minecraft.World/Merchant.h new file mode 100644 index 00000000..8b4b7a69 --- /dev/null +++ b/Minecraft.World/Merchant.h @@ -0,0 +1,17 @@ +#pragma once + +class MerchantRecipeList; +class MerchantRecipe; +class Player; + +class Merchant +{ +public: + virtual void setTradingPlayer(shared_ptr player) = 0; + virtual shared_ptr getTradingPlayer() = 0; + virtual MerchantRecipeList *getOffers(shared_ptr forPlayer) = 0; + virtual void overrideOffers(MerchantRecipeList *recipeList) = 0; + virtual void notifyTrade(MerchantRecipe *activeRecipe) = 0; + virtual void notifyTradeUpdated(shared_ptr item) = 0; + virtual int getDisplayName() = 0; +}; \ No newline at end of file -- cgit v1.2.3