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;
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|