metaforce/Runtime/Character/CSegId.hpp

29 lines
487 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-09 23:19:17 +00:00
#include "Runtime/IOStreams.hpp"
#include "Runtime/RetroTypes.hpp"
#include <zeus/CVector3f.hpp>
2016-04-09 23:19:17 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
class CSegId {
u8 x0_segId = 0xff;
2016-04-09 23:19:17 +00:00
public:
2018-12-08 05:30:43 +00:00
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; }
2016-04-09 23:19:17 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde