Files
sms/include/Camera/CameraMapTool.hpp
KakarotCake f7d121963f System: audit factories and card state handling (#200)
* System/MarNameRefGen_BossEnemy: construct Boss Pakkun variants

* Camera/CameraMapTool: store pitch and yaw as angles

* System: restore enemy factories and tree defaults

* System/CardManager: initialize criteria and close option files

* System/CardManager: preserve option read flow

* System/MarDirectorEvent: select the retail shine camera

* System/EmitterViewObj: use particle identity and selected color

* System/MenuDir: load default wave on first setup

* System/EventWatcher: construct transform vectors in source order

* Address System review comments
2026-09-29 22:56:46 +03:00

40 lines
929 B
C++

#ifndef CAMERA_CAMERA_MAP_TOOL_HPP
#define CAMERA_CAMERA_MAP_TOOL_HPP
#include <JSystem/JDrama/JDRNameRef.hpp>
#include <JSystem/JGeometry.hpp>
#include <Strategic/NameRefAry.hpp>
class TCameraMapTool : public JDrama::TNameRef {
public:
struct TPitchYaw {
f32 pitch;
f32 yaw;
};
TCameraMapTool(const char* name = "<TCameraMapTool>")
: JDrama::TNameRef(name)
{
}
void calcPosAndAt(JGeometry::TVec3<f32>*, JGeometry::TVec3<f32>*) const;
void load(JSUMemoryInputStream&);
// Fabricated
f32 getYaw() const { return mPitchYaw.yaw; }
int getCameraMode() const { return mCameraMode; }
int getDemoLengthFrames() const { return mDemoLengthFrames; }
public:
/* 0xC */ JGeometry::TVec3<f32> mPosition;
/* 0x18 */ TPitchYaw mPitchYaw;
/* 0x20 */ u32 unk20;
/* 0x24 */ s32 mCameraMode;
/* 0x28 */ s32 unk28;
/* 0x2C */ u32 mDemoLengthFrames;
};
extern TNameRefAryT<TCameraMapTool>* gpCamMapToolTable;
#endif