2021-05-31 05:14:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-28 03:33:48 +00:00
|
|
|
#include "Runtime/CPlayerState.hpp"
|
2021-05-31 05:14:07 +00:00
|
|
|
|
|
|
|
namespace metaforce {
|
2022-02-28 03:33:48 +00:00
|
|
|
struct ImGuiPlayerLoadouts {
|
|
|
|
struct Item {
|
|
|
|
CPlayerState::EItemType type = CPlayerState::EItemType::Invalid;
|
|
|
|
u32 amount = 0;
|
|
|
|
Item() = default;
|
|
|
|
explicit Item(CInputStream& in);
|
|
|
|
void PutTo(COutputStream& out) const;
|
2021-05-31 05:14:07 +00:00
|
|
|
};
|
2022-02-28 03:33:48 +00:00
|
|
|
struct LoadOut{
|
|
|
|
std::string name;
|
|
|
|
std::vector<Item> items;
|
|
|
|
LoadOut() = default;
|
|
|
|
explicit LoadOut(CInputStream& in);
|
|
|
|
void PutTo(COutputStream& out) const;
|
2021-05-31 05:14:07 +00:00
|
|
|
};
|
2022-02-28 03:33:48 +00:00
|
|
|
std::vector<LoadOut> loadouts;
|
|
|
|
|
|
|
|
ImGuiPlayerLoadouts() = default;
|
|
|
|
explicit ImGuiPlayerLoadouts(CInputStream& in);
|
|
|
|
void PutTo(COutputStream& out) const;
|
2021-05-31 05:14:07 +00:00
|
|
|
};
|
|
|
|
} // namespace metaforce
|