2016-04-26 10:40:56 +00:00
|
|
|
#ifndef __URDE_CCOLLISIONEDGE_HPP__
|
|
|
|
#define __URDE_CCOLLISIONEDGE_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CCollisionEdge
|
|
|
|
{
|
|
|
|
u16 x0_index1 = -1;
|
|
|
|
u16 x2_index2 = -1;
|
|
|
|
public:
|
|
|
|
CCollisionEdge()=default;
|
|
|
|
CCollisionEdge(CInputStream&);
|
|
|
|
|
2017-02-28 07:31:14 +00:00
|
|
|
u16 GetVertIndex1() const { return x0_index1; }
|
|
|
|
u16 GetVertIndex2() const { return x2_index2; }
|
|
|
|
|
|
|
|
void swapBig()
|
|
|
|
{
|
|
|
|
x0_index1 = hecl::SBig(x0_index1);
|
|
|
|
x2_index2 = hecl::SBig(x2_index2);
|
|
|
|
}
|
2016-04-26 10:40:56 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CCOLLISIONEDGE_HPP__
|