mirror of
https://github.com/MonsterDruide1/OdysseyDecomp.git
synced 2024-11-26 23:00:25 +00:00
Library/Camera: Implement CameraTicket
(#153)
This commit is contained in:
parent
d8efb8ff27
commit
e388ee7ce2
@ -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.
|
12
lib/al/Library/Camera/CameraTicket.cpp
Normal file
12
lib/al/Library/Camera/CameraTicket.cpp
Normal 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
|
35
lib/al/Library/Camera/CameraTicket.h
Normal file
35
lib/al/Library/Camera/CameraTicket.h
Normal 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
|
Loading…
Reference in New Issue
Block a user