2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 12:27:43 +00:00

Initial PlayerLoadout structure

This commit is contained in:
2021-05-30 22:14:07 -07:00
parent 201d5c5423
commit 27f25223fb
4 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <athena/DNA.hpp>
#include <athena/DNAYaml.hpp>
namespace metaforce {
struct ImGuiPlayerLoadouts : athena::io::DNA<athena::Endian::Big> {
AT_DECL_DNA_YAML
struct Item : athena::io::DNA<athena::Endian::Big> {
AT_DECL_DNA_YAML
String<-1> type;
Value<atUint32> amount;
};
struct LoadOut : athena::io::DNA<athena::Endian::Big> {
AT_DECL_DNA_YAML
String<-1> name;
Value<atUint32> itemCount;
Vector<Item, AT_DNA_COUNT(itemCount)> items;
};
Value<atUint32> loadoutCount;
Vector<LoadOut, AT_DNA_COUNT(loadoutCount)> loadouts;
};
} // namespace metaforce