A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
MapdataCannonPoint.hh
Go to the documentation of this file.
1#pragma once
2
4
6
7#include <egg/math/Vector.hh>
8
9namespace Kinoko::System {
10
12public:
19
20 MapdataCannonPoint(const SData *data);
21 void read(EGG::Stream &stream);
22
24 const EGG::Vector3f &pos() const {
25 return m_pos;
26 }
27
28 const EGG::Vector3f &rot() const {
29 return m_rot;
30 }
31
32 u16 id() const {
33 return m_id;
34 }
35
36 s16 parameterIdx() const {
37 return m_parameterIdx;
38 }
39
41
42private:
43 [[maybe_unused]] const SData *m_rawData;
49};
50
52 : public MapdataAccessorBase<MapdataCannonPoint, MapdataCannonPoint::SData> {
53public:
56};
57
58} // namespace Kinoko::System
A stream of data, abstracted to allow for continuous seeking.
Definition Stream.hh:8
MapdataCannonPointAccessor(const MapSectionHeader *header)
const EGG::Vector3f & pos() const
const EGG::Vector3f & rot() const
High-level handling for generic system operations, such as input reading, race configuration,...
Definition ObjectBase.hh:23
int16_t s16
Definition Memory.hh:12
uint16_t u16
Definition Memory.hh:17
A 3D float vector.
Definition Vector.hh:108