2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-26 10:40:56 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-04-26 10:40:56 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
class CCollisionEdge {
|
|
|
|
u16 x0_index1 = -1;
|
|
|
|
u16 x2_index2 = -1;
|
|
|
|
|
2016-04-26 10:40:56 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CCollisionEdge() = default;
|
2020-03-31 03:52:22 +00:00
|
|
|
explicit CCollisionEdge(CInputStream&);
|
2019-01-05 03:28:02 +00:00
|
|
|
CCollisionEdge(u16 v0, u16 v1) : x0_index1(v0), x2_index2(v1) {}
|
2016-04-26 10:40:56 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
u16 GetVertIndex1() const { return x0_index1; }
|
|
|
|
u16 GetVertIndex2() const { return x2_index2; }
|
2017-02-28 07:31:14 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void swapBig() {
|
|
|
|
x0_index1 = hecl::SBig(x0_index1);
|
|
|
|
x2_index2 = hecl::SBig(x2_index2);
|
|
|
|
}
|
2016-04-26 10:40:56 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|