LeviLamina
Loading...
Searching...
No Matches
InventorySource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7#include "mc/world/inventory/transaction/InventorySourceType.h"
8
10public:
11 // InventorySource inner types define
12 enum class InventorySourceFlags : uint {
13 NoFlag = 0,
14 WorldInteractionRandom = 1,
15 };
16
17public:
18 bool operator==(InventorySource const& rhs) const {
19 if (mType != rhs.mType) {
20 return false;
21 }
22 if (mType == InventorySourceType::ContainerInventory) {
23 return mContainerId == rhs.mContainerId;
24 }
25 return mType == InventorySourceType::GlobalInventory;
26 }
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, ::InventorySourceType> mType;
32 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
33 ::ll::TypedStorage<4, 4, ::InventorySource::InventorySourceFlags> mFlags;
34 // NOLINTEND
35};
Definition InventorySource.h:9