27class ContainerScreenValidation {
31 ::ll::TypedStorage<8, 40, ::ContainerScreenContext> mScreenContext;
32 ::ll::TypedStorage<4, 4, ::ContainerValidationCaller> mCaller;
33 ::ll::TypedStorage<8, 64, ::std::unordered_map<::FullContainerName, uint64>> mContainerIndexMap;
37 ::std::unordered_map<::FullContainerName, ::std::shared_ptr<::ContainerValidationBase const>>>
38 mContainerValidatorMap;
39 ::ll::TypedStorage<8, 64, ::std::unordered_map<::FullContainerName, ::std::shared_ptr<::Container>>>
40 mPredictiveContainers;
41 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ContainerScreenValidatorBase>> mContainerScreenValidator;
42 ::ll::TypedStorage<8, 24, ::std::vector<::ContainerValidationLayer>> mValidationStack;
43 ::ll::TypedStorage<4, 12, ::ContainerValidationDebug const> mDebug;
48 ContainerScreenValidation();
53 virtual ~ContainerScreenValidation();
55 virtual ::ContainerValidationResult tryCraft(::std::unique_ptr<::ContainerValidationCraftInputs>, uchar
const);
57 virtual ::ContainerValidationCraftResult
58 getCraftResults(::std::unique_ptr<::ContainerValidationCraftInputs>, uchar
const);
60 virtual ::ContainerValidationResult tryActivate();
66 MCAPI ContainerScreenValidation(
68 ::ContainerValidationCaller caller,
69 ::std::unordered_map<
::FullContainerName, ::std::shared_ptr<::Container>> predictiveContainers
74 MCAPI ::ContainerValidationSlotInfo
77 MCAPI
bool _dropItems();
79 MCAPI ::std::shared_ptr<::ContainerValidationBase const>
82 MCAPI
bool _propagateContainers();
91 MCAPI
int _trySetItem(
94 bool isWholeStackTransfer,
95 bool allowPartialSuccess,
96 bool isInternalTransfer
99 MCAPI ::ContainerValidationResult _tryTransferSpecial(
102 ::ContainerScreenRequestActionType actionType
105 MCAPI ::std::shared_ptr<::SimpleSparseContainer>
108 MCAPI
bool tryCommitActionResults();
112 MCAPI ::ContainerValidationResult
115 MCAPI ::ContainerValidationResult
118 MCAPI ::ContainerValidationResult tryTransfer(
122 bool isAllowingPartialTransfer
129 MCAPI static ::std::unique_ptr<::ContainerScreenValidation> makeContainerScreenValidation(
131 ::ContainerValidationCaller caller,
132 ::std::unordered_map<
::FullContainerName, ::std::shared_ptr<::Container>> predictiveContainers
141 ::ContainerValidationCaller caller,
142 ::std::unordered_map<
::FullContainerName, ::std::shared_ptr<::Container>> predictiveContainers
155 MCAPI ::ContainerValidationResult $tryCraft(::std::unique_ptr<::ContainerValidationCraftInputs>, uchar
const);
157 MCAPI ::ContainerValidationCraftResult
158 $getCraftResults(::std::unique_ptr<::ContainerValidationCraftInputs>, uchar
const);
160 MCFOLD ::ContainerValidationResult $tryActivate();
Definition ContainerScreenContext.h:17