2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CSEGID_HPP__
|
|
|
|
#define __URDE_CSEGID_HPP__
|
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;
|
2016-04-12 22:28:08 +00:00
|
|
|
CSegId(u8 id) : x0_segId(id) {}
|
2016-04-09 23:19:17 +00:00
|
|
|
CSegId(CInputStream& in) : x0_segId(in.readUint32Big()) {}
|
2016-04-12 22:28:08 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CSEGID_HPP__
|