LeviLamina
Loading...
Searching...
No Matches
MerchantRecipe.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/inventory/network/TypedServerNetId.h"
5#include "mc/world/inventory/network/crafting/RecipeNetIdTag.h"
6#include "mc/world/item/ItemInstance.h"
7
8// auto generated inclusion list
9#include "mc/world/inventory/network/TypedServerNetId.h"
10#include "mc/world/item/ItemInstance.h"
11
12// auto generated forward declare list
13// clang-format off
14class BaseGameVersion;
15struct RecipeNetIdTag;
16// clang-format on
17
18class MerchantRecipe {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 128, ::ItemInstance> mBuyA;
23 ::ll::TypedStorage<8, 128, ::ItemInstance> mBuyB;
24 ::ll::TypedStorage<8, 128, ::ItemInstance> mSell;
25 ::ll::TypedStorage<4, 4, int> mTier;
26 ::ll::TypedStorage<4, 4, int> mUses;
27 ::ll::TypedStorage<4, 4, int> mMaxUses;
28 ::ll::TypedStorage<4, 4, uint> mTraderExp;
29 ::ll::TypedStorage<1, 1, bool> mRewardExp;
30 ::ll::TypedStorage<4, 4, int> mDemand;
31 ::ll::TypedStorage<4, 4, int> mBuyCountA;
32 ::ll::TypedStorage<4, 4, int> mBuyCountB;
33 ::ll::TypedStorage<4, 4, float> mPriceMultiplierA;
34 ::ll::TypedStorage<4, 4, float> mPriceMultiplierB;
35 ::ll::TypedStorage<4, 4, ::RecipeNetId> mRecipeNetId;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 MerchantRecipe();
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI MerchantRecipe(::ItemInstance const& buy, ::ItemInstance const& sell);
46
47 MCAPI MerchantRecipe(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
48
49 MCAPI void calculateDemandPrices(
50 int minorPositiveGossip,
51 int majorPositiveGossip,
52 int nearbyCuredDiscount,
53 int heroEffectAmplifier,
54 bool hasHeroOfTheVillage,
55 ::BaseGameVersion baseGameVersion
56 );
57
58 MCAPI bool isSame(::MerchantRecipe const& lhs) const;
59
60 MCAPI void legacyCalculateDemandPrices(int lowTierDiscount, int highTierDiscount);
61
62 MCAPI ~MerchantRecipe();
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(::ItemInstance const& buy, ::ItemInstance const& sell);
69
70 MCAPI void* $ctor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78};
Definition BaseGameVersion.h:8
Definition ItemInstance.h:15
Definition RecipeNetIdTag.h:5