Library/Camera: Implement CameraTicket (#153)

This commit is contained in:
MonsterDruide1 2024-09-03 12:50:50 +02:00 committed by GitHub
parent d8efb8ff27
commit e388ee7ce2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 49 additions and 2 deletions

View File

@ -51754,8 +51754,8 @@ Address,Quality,Size,Name
0x000000710083b23c,U,000092,_ZN2al18CameraTargetHolder15removeSubTargetEPNS_19CameraSubTargetBaseE
0x000000710083b298,U,000116,_ZN2al18CameraTargetHolder21addPlacementSubTargetEPNS_19CameraSubTargetBaseE
0x000000710083b30c,U,000092,_ZN2al18CameraTargetHolder24removePlacementSubTargetEPNS_19CameraSubTargetBaseE
0x000000710083b368,U,000016,_ZN2al12CameraTicketC1EPNS_11CameraPoserEPKNS_14CameraTicketIdEi
0x000000710083b378,U,000008,_ZN2al12CameraTicket11setPriorityEi
0x000000710083b368,O,000016,_ZN2al12CameraTicketC1EPNS_11CameraPoserEPKNS_14CameraTicketIdEi
0x000000710083b378,O,000008,_ZN2al12CameraTicket11setPriorityEi
0x000000710083b380,U,000124,_ZN2al18CameraTicketHolderC2Ei
0x000000710083b3fc,U,000116,_ZN2al18CameraTicketHolder7endInitEv
0x000000710083b470,U,000044,_ZN2al18CameraTicketHolder14registerTicketEPNS_12CameraTicketE

Can't render this file because it is too large.

View File

@ -0,0 +1,12 @@
#include "Library/Camera/CameraTicket.h"
namespace al {
CameraTicket::CameraTicket(CameraPoser* poser, const CameraTicketId* ticketId, s32 priority)
: mPoser(poser), mTicketId(ticketId), mPriority(priority) {}
void CameraTicket::setPriority(s32 priority) {
mPriority = priority;
}
} // namespace al

View File

@ -0,0 +1,35 @@
#pragma once
#include <basis/seadTypes.h>
namespace al {
class CameraPoser;
class CameraTicketId;
class CameraTicket {
public:
enum Priority {
// Priority_EntranceAll = 2,
Priority_BossField = 3,
Priority_Capture = 4,
Priority_Object = 5,
Priority_ForceArea = 6,
// Priority_EntranceAll = 7,
Priority_SafetyPointRecovery = 8,
Priority_Player = 9,
Priority_DemoTalk = 10,
Priority_Demo = 11,
Priority_Demo2 = 12,
};
CameraTicket(CameraPoser* poser, const CameraTicketId* ticketId, s32 priority);
void setPriority(s32 priority);
private:
CameraPoser* mPoser;
const CameraTicketId* mTicketId;
s32 mPriority;
bool mIsActiveCamera = false;
};
} // namespace al