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

Initial CAnimData implementation and other support classes

This commit is contained in:
Jack Andersen
2016-04-12 12:28:08 -10:00
parent 14e0468adf
commit 795b77fe48
29 changed files with 367 additions and 81 deletions

View File

@@ -13,9 +13,11 @@ class CSegId
u8 x0_segId = 0xff;
public:
CSegId() = default;
CSegId(u8 id) : x0_segId(id) {}
CSegId(CInputStream& in) : x0_segId(in.readUint32Big()) {}
operator bool() const {return x0_segId != 0xff;}
u8 GetId() const {return x0_segId;}
CSegId& operator++() {++x0_segId; return *this;}
CSegId& operator--() {--x0_segId; return *this;}
operator u8() const {return x0_segId;}
};
}