metaforce/Runtime/Character/CSegId.hpp

24 lines
440 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 "RetroTypes.hpp"
#include "IOStreams.hpp"
#include "zeus/CVector3f.hpp"
namespace urde
{
class CSegId
{
u8 x0_segId = 0xff;
public:
CSegId() = default;
CSegId(u8 id) : x0_segId(id) {}
2016-04-09 23:19:17 +00:00
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
};
}