iOS Support (#113)

undefined
This commit is contained in:
Brent
2024-01-22 09:22:41 -06:00
committed by GitHub
parent 90a15340b1
commit afe875e4fa
109 changed files with 6523 additions and 1105 deletions

View File

@@ -4,7 +4,7 @@
Inventory::Inventory(Player* pPlayer)
{
m_pPlayer = pPlayer;
m_SelectedHotbarSlot = 0;
m_selectedHotbarSlot = 0;
m_bIsSurvival = false;
for (int i = 0; i < C_MAX_HOTBAR_ITEMS; i++)
@@ -233,12 +233,12 @@ ItemInstance* Inventory::getQuickSlotItem(int slotNo)
ItemInstance* Inventory::getSelectedItem()
{
return getQuickSlotItem(m_SelectedHotbarSlot);
return getQuickSlotItem(m_selectedHotbarSlot);
}
int Inventory::getSelectedItemId()
{
return getQuickSlotItemId(m_SelectedHotbarSlot);
return getQuickSlotItemId(m_selectedHotbarSlot);
}
void Inventory::selectItem(int slotNo, int maxHotBarSlot)
@@ -251,7 +251,7 @@ void Inventory::selectItem(int slotNo, int maxHotBarSlot)
{
if (m_hotbar[i] == slotNo)
{
m_SelectedHotbarSlot = i;
m_selectedHotbarSlot = i;
return;
}
}
@@ -260,7 +260,7 @@ void Inventory::selectItem(int slotNo, int maxHotBarSlot)
m_hotbar[i + 1] = m_hotbar[i];
m_hotbar[0] = slotNo;
m_SelectedHotbarSlot = 0;
m_selectedHotbarSlot = 0;
}
void Inventory::selectSlot(int slotNo)
@@ -268,7 +268,7 @@ void Inventory::selectSlot(int slotNo)
if (slotNo < 0 || slotNo >= C_MAX_HOTBAR_ITEMS)
return;
m_SelectedHotbarSlot = slotNo;
m_selectedHotbarSlot = slotNo;
}
void Inventory::setQuickSlotIndexByItemId(int slotNo, int itemID)
@@ -312,4 +312,4 @@ int Inventory::getAttackDamage(Entity* pEnt)
return 1;
return pInst->getAttackDamage(pEnt);
}
}