1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-09-28 09:52:14 +02:00
GiantsTools/Sdk/Include/GameObject/Public/Components/Inventory.h

57 lines
1.3 KiB
C
Raw Normal View History

2021-01-24 00:40:09 +01:00
#pragma once
namespace GameObj
{
const int MeccNumPrimaryWeapons = 4;
const int MeccNumOther = 3;
const int ReaperNumPrimaryWeapons = 4;
const int ReaperMaxSpells = 5;
const int ReaperNumOther = 2;
struct InventoryIcon
{
int IconId{};
int Count{};
};
struct SpellInventoryIcon
{
int IconId{};
float ManaCost{};
float Energy{};
};
struct InventoryState
{
InventoryState(int primaryCapacity, int otherCapacity)
{
PrimaryIcons.resize(primaryCapacity);
OtherIcons.resize(otherCapacity);
}
static InventoryState CreateMeccInventory()
{
return InventoryState(MeccNumPrimaryWeapons, MeccNumOther);
}
static InventoryState CreateReaperInventory()
{
return InventoryState(ReaperNumPrimaryWeapons, ReaperNumOther);
}
std::vector<InventoryIcon> PrimaryIcons;
std::vector<InventoryIcon> OtherIcons;
InventoryIcon SpecialIcon;
};
struct SpellInventoryState
{
SpellInventoryState(int numSpells = ReaperMaxSpells)
{
SpellIcons.reserve(numSpells);
}
std::vector<SpellInventoryIcon> SpellIcons;
};
}