mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-08 18:46:36 +00:00
refactor: move Common to Platform/Common
This commit is contained in:
17
Minecraft.Client/Platform/Common/Tutorial/PickupTask.cpp
Normal file
17
Minecraft.Client/Platform/Common/Tutorial/PickupTask.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "../../Minecraft.World/Platform/stdafx.h"
|
||||
#include "PickupTask.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