A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
System::MapdataPointInfo Class Reference

Description

Definition at line 12 of file MapdataPointInfo.hh.

Classes

struct  Point
 
struct  SData
 

Public Member Functions

 STATIC_ASSERT (sizeof(SData)==0x4)
 
 MapdataPointInfo (const SData *data)
 
void read (EGG::RamStream &stream)
 
size_t pointCount () const
 
u8 setting (size_t idx) const
 
const std::span< Point > & points () const
 

Private Attributes

const SDatam_rawData
 
std::array< u8, 2 > m_settings
 
std::span< Pointm_points
 

Constructor & Destructor Documentation

◆ MapdataPointInfo()

System::MapdataPointInfo::MapdataPointInfo ( const SData * data)

Definition at line 7 of file MapdataPointInfo.cc.

◆ ~MapdataPointInfo()

System::MapdataPointInfo::~MapdataPointInfo ( )

Definition at line 13 of file MapdataPointInfo.cc.

Member Function Documentation

◆ pointCount()

size_t System::MapdataPointInfo::pointCount ( ) const
inlinenodiscard

Definition at line 31 of file MapdataPointInfo.hh.

◆ points()

const std::span< Point > & System::MapdataPointInfo::points ( ) const
inlinenodiscard

Definition at line 40 of file MapdataPointInfo.hh.

◆ read()

void System::MapdataPointInfo::read ( EGG::RamStream & stream)

Definition at line 17 of file MapdataPointInfo.cc.

◆ setting()

u8 System::MapdataPointInfo::setting ( size_t idx) const
inlinenodiscard

Definition at line 35 of file MapdataPointInfo.hh.

Member Data Documentation

◆ m_points

std::span<Point> System::MapdataPointInfo::m_points
private

Definition at line 47 of file MapdataPointInfo.hh.

◆ m_rawData

const SData* System::MapdataPointInfo::m_rawData
private

Definition at line 45 of file MapdataPointInfo.hh.

◆ m_settings

std::array<u8, 2> System::MapdataPointInfo::m_settings
private

Definition at line 46 of file MapdataPointInfo.hh.