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

Massive template-based DNA refactor

This commit is contained in:
Jack Andersen
2018-02-21 21:24:51 -10:00
parent b405f33ded
commit e4ff23c279
265 changed files with 3993 additions and 5773 deletions

View File

@@ -8,12 +8,12 @@ namespace DataSpec::DNAMP1
struct DeafBabe : BigDNA
{
DECL_DNA
AT_DECL_DNA
using BspNodeType = DataSpec::BspNodeType;
struct Material : BigDNA
{
DECL_DNA
AT_DECL_DNA
Value<atUint32> material = 0;
bool unknown() const { return material & 1; }
void setUnknown(bool v) { material &= ~1; material |= int(v); }
@@ -107,13 +107,13 @@ struct DeafBabe : BigDNA
struct Edge : BigDNA
{
DECL_DNA
AT_DECL_DNA
Value<atUint16> verts[2];
};
struct Triangle : BigDNA
{
DECL_DNA
AT_DECL_DNA
Value<atUint16> edges[3];
};