refactor: flatten app/ and util/ directory structure
This commit is contained in:
1 parent
9c0dfd60d5
commit
d814a78453
616 files changed
+1731
-1747
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#include "PickupTask.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "minecraft/world/item/ItemInstance.h"
|
||||
|
||||
void PickupTask::onTake(std::shared_ptr<ItemInstance> item,
|
||||
unsigned int invItemCountAnyAux,
|
||||
unsigned int invItemCountThisAux) {
|
||||
if (item->id == m_itemId) {
|
||||
if (m_auxValue == -1 && invItemCountAnyAux >= m_quantity) {
|
||||
bIsCompleted = true;
|
||||
} else if (m_auxValue == item->getAuxValue() &&
|
||||
invItemCountThisAux >= m_quantity) {
|
||||
bIsCompleted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user