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:
23
Runtime/ImGuiPlayerLoadouts.hpp
Normal file
23
Runtime/ImGuiPlayerLoadouts.hpp
Normal 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
|
||||
Reference in New Issue
Block a user