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

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -4,20 +4,24 @@
#include "IOStreams.hpp"
#include "zeus/CVector3f.hpp"
namespace urde
{
namespace urde {
class CSegId {
u8 x0_segId = 0xff;
class CSegId
{
u8 x0_segId = 0xff;
public:
CSegId() = default;
CSegId(u8 id) : x0_segId(id) {}
CSegId(CInputStream& in) : x0_segId(in.readUint32Big()) {}
CSegId& operator++() {++x0_segId; return *this;}
CSegId& operator--() {--x0_segId; return *this;}
operator u8() const {return x0_segId;}
CSegId() = default;
CSegId(u8 id) : x0_segId(id) {}
CSegId(CInputStream& in) : x0_segId(in.readUint32Big()) {}
CSegId& operator++() {
++x0_segId;
return *this;
}
CSegId& operator--() {
--x0_segId;
return *this;
}
operator u8() const { return x0_segId; }
};
}
} // namespace urde