From 2ac6ebaaffcddb9a2568542929f642fd2eca2bf5 Mon Sep 17 00:00:00 2001 From: Fuzzy2319 <61144247+Fuzzy2319@users.noreply.github.com> Date: Sat, 4 Jan 2025 15:26:23 +0100 Subject: [PATCH] Library/Rail: Refactor `RailUtil` (#216) --- lib/al/Library/Rail/RailUtil.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/al/Library/Rail/RailUtil.h b/lib/al/Library/Rail/RailUtil.h index bc222004..84f04f2c 100644 --- a/lib/al/Library/Rail/RailUtil.h +++ b/lib/al/Library/Rail/RailUtil.h @@ -12,9 +12,11 @@ void setRailPosToStart(IUseRail* railHolder); void moveSyncRail(LiveActor* actor, f32 speed); void moveSyncRailLoop(LiveActor* actor, f32 speed); void moveSyncRailTurn(LiveActor* actor, f32 speed); -void calcRailUp(sead::Vector3f* out, IUseRail* railHolder); -const sead::Vector3f& getRailDir(IUseRail* railHolder); -f32 getRailCoord(IUseRail* railHolder); -bool isExistRail(IUseRail* railHolder); +void calcRailUp(sead::Vector3f* out, const IUseRail* railHolder); +const sead::Vector3f& getRailDir(const IUseRail* railHolder); +f32 getRailCoord(const IUseRail* railHolder); +bool isExistRail(const IUseRail* railHolder); void setRailClippingInfo(sead::Vector3f*, LiveActor* actor, f32, f32); +bool isRailReachedGoal(const IUseRail* railHolder); +bool isRailReachedEnd(const IUseRail* railHolder); } // namespace al