mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 17:07:41 +00:00
Major scoped-enum refactor
This commit is contained in:
@@ -11,11 +11,11 @@ namespace DNAMP1
|
||||
struct DeafBabe : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
enum BspNodeType : atUint32
|
||||
enum class BspNodeType : atUint32
|
||||
{
|
||||
BspNodeInvalid,
|
||||
BspNodeBranch,
|
||||
BspNodeLeaf
|
||||
Invalid,
|
||||
Branch,
|
||||
Leaf
|
||||
};
|
||||
|
||||
struct Material : BigDNA
|
||||
@@ -25,7 +25,7 @@ struct DeafBabe : BigDNA
|
||||
bool fireThrough() const {return material >> 18 & 0x1;}
|
||||
void setFireThrough(bool v) {material &= ~0x40000; material |= v << 18;}
|
||||
|
||||
enum Type
|
||||
enum class Type
|
||||
{
|
||||
Mat0,
|
||||
MatGround,
|
||||
@@ -39,7 +39,7 @@ struct DeafBabe : BigDNA
|
||||
MatLeaves
|
||||
};
|
||||
Type type() const {return Type(material & 0xff);}
|
||||
void setType(Type t) {material &= ~0xff; material |= t;}
|
||||
void setType(Type t) {material &= ~0xff; material |= atUint32(t);}
|
||||
};
|
||||
|
||||
struct Edge : BigDNA
|
||||
|
||||
Reference in New Issue
Block a user