A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
ObjectFlowTable.cc
1#include "ObjectFlowTable.hh"
2
3#include "game/system/ResourceManager.hh"
4
5namespace Field {
6
8ObjectFlowTable::ObjectFlowTable(const char *filename) {
9 SFile *file = reinterpret_cast<SFile *>(System::ResourceManager::Instance()->getFile(filename,
10 nullptr, System::ArchiveId::Core));
11
12 m_count = parse<s16>(file->count);
13 m_sets = file->sets;
14 m_slots = reinterpret_cast<const s16 *>(m_sets + m_count);
15}
16
18ObjectFlowTable::~ObjectFlowTable() = default;
19
20} // namespace Field
Pertains to collision.