| 1 | #include "Library/Camera/CameraStopJudge.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Area/AreaObjUtil.h" |
| 4 | #include "Library/Area/IUseAreaObj.h" |
| 5 | |
| 6 | namespace al { |
| 7 | |
| 8 | CameraStopJudge::CameraStopJudge() = default; |
| 9 | |
| 10 | bool CameraStopJudge::isStop() const { |
| 11 | if (mIsInvalidStopJudgeByDemo) |
| 12 | return false; |
| 13 | return mIsInCameraStopArea || _9; |
| 14 | } |
| 15 | |
| 16 | void CameraStopJudge::update(const sead::Vector3f& position) { |
| 17 | mIsInCameraStopArea = isInAreaObj(areaUser: this, name: "CameraStopArea", position); |
| 18 | } |
| 19 | } // Namespace al |
| 20 |