mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 19:01:14 +02:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.6 KiB
C++
33 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include "Game/Map/RailGraphIter.hpp"
|
|
#include "Game/Map/RailGraphNode.hpp"
|
|
#include "Game/Util/JMapInfo.hpp"
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
class RailGraphNodeSelecter {
|
|
public:
|
|
virtual bool isSatisfy(RailGraphIter& rIter) = 0;
|
|
};
|
|
|
|
namespace MR {
|
|
RailGraph* createRailGraphFromJMap(const JMapInfoIter& rIter);
|
|
RailGraphIter* createRailGraphIter(const RailGraph* pRailGraph);
|
|
void moveNodeNearPosition(RailGraphIter* pRailGraphIter, const TVec3f& rPosition, f32 maxDistance, RailGraphNodeSelecter* pSelector);
|
|
TVec3f* getNextNodePosition(const RailGraphIter* pRailGraphIter);
|
|
TVec3f* getCurrentNodePosition(const RailGraphIter* pRailGraphIter);
|
|
void selectReverseEdge(RailGraphIter* pRailGraphIter);
|
|
void moveNextNode(RailGraphIter* pRailGraphIter);
|
|
s32 getSelectEdgeArg0(const RailGraphIter* pRailGraphIter);
|
|
s32 getSelectEdgeArg1(const RailGraphIter* pRailGraphIter);
|
|
s32 getSelectEdgeArg2(const RailGraphIter* pRailGraphIter);
|
|
s32 getSelectEdgeArg3(const RailGraphIter* pRailGraphIter);
|
|
bool isSelectedEdge(const RailGraphIter* pRailGraphIter);
|
|
bool isWatchedPrevEdge(const RailGraphIter* pRailGraphIter);
|
|
s32 getWatchEdgeArg7(const RailGraphIter* pRailGraphIter);
|
|
void calcNextEdgeVector(const RailGraphIter* pIter, TVec3f* pEdge);
|
|
void calcWatchEdgeVector(const RailGraphIter* pIter, TVec3f* pEdge) NO_INLINE;
|
|
void calcWatchEdgeDirection(const RailGraphIter* pRailGraphIter, TVec3f* pVec);
|
|
|
|
s32 getNearNodeIndex(const RailGraph* pGraph, const TVec3f& rPosition, f32 maxDistance, RailGraphNodeSelecter* pSelector);
|
|
} // namespace MR
|