- Mesaj
- 576
- Çözümler
- 25
- Beğeni
- 351
- Puan
- 799
- Ticaret Puanı
- 0
m_pointsInstant ile m_PlayerSlots farkı nedir? niye m_PlayerSlots yapmalıyım zararı veya katkısı nedir?
örnek;
m_pointsInstant;
m_PlayerSlots;
örnek;
m_pointsInstant;
Kod:
#ifdef ENABLE_SWITCHBOT
case SWITCHBOT:
{
LPITEM pOld = m_pointsInstant.pSwitchbotItems[wCell];
if (pItem && pOld)
{
return;
}
if (wCell >= SWITCHBOT_SLOT_COUNT)
{
sys_err("CHARACTER::SetItem: invalid switchbot item cell %d", wCell);
return;
}
if (pItem)
{
CSwitchbotManager::Instance().RegisterItem(GetPlayerID(), pItem->GetID(), wCell);
}
else
{
CSwitchbotManager::Instance().UnregisterItem(GetPlayerID(), wCell);
}
m_pointsInstant.pSwitchbotItems[wCell] = pItem;
}
break;
#endif
m_PlayerSlots;
Kod:
#ifdef ENABLE_SWITCHBOT
case SWITCHBOT:
{
LPITEM pOld = m_PlayerSlots->pSwitchbotItems[wCell];
if (pItem && pOld)
{
return;
}
if (wCell >= SWITCHBOT_SLOT_COUNT)
{
sys_err("CHARACTER::SetItem: invalid switchbot item cell %d", wCell);
return;
}
if (pItem)
{
CSwitchbotManager::Instance().RegisterItem(GetPlayerID(), pItem->GetID(), wCell);
}
else
{
CSwitchbotManager::Instance().UnregisterItem(GetPlayerID(), wCell);
}
m_PlayerSlots->pSwitchbotItems[wCell] = pItem;
}
break;
#endif