2022-03-21 21:54:48 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "tinyxml2.h"
|
|
|
|
|
2023-05-07 19:58:50 -04:00
|
|
|
#include "OtherStructs/Cutscene_Commands.h"
|
|
|
|
#include "ZFile.h"
|
|
|
|
#include "ZResource.h"
|
2022-03-21 21:54:48 -04:00
|
|
|
|
2023-05-07 19:58:50 -04:00
|
|
|
class ZCutscene : public ZResource
|
2022-03-21 21:54:48 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ZCutscene(ZFile* nParent);
|
|
|
|
~ZCutscene();
|
|
|
|
|
|
|
|
void ParseRawData() override;
|
|
|
|
|
2023-05-07 19:58:50 -04:00
|
|
|
Declaration* DeclareVar(const std::string& prefix, const std::string& bodyStr) override;
|
|
|
|
|
2022-03-21 21:54:48 -04:00
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
|
|
|
|
size_t GetRawDataSize() const override;
|
|
|
|
|
2023-05-07 19:58:50 -04:00
|
|
|
std::string GetSourceTypeName() const override;
|
2022-03-21 21:54:48 -04:00
|
|
|
ZResourceType GetResourceType() const override;
|
|
|
|
|
|
|
|
int32_t numCommands;
|
|
|
|
int32_t endFrame;
|
|
|
|
std::vector<CutsceneCommand*> commands;
|
2023-05-07 19:58:50 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
CutsceneCommand* GetCommandOoT(uint32_t id, offset_t currentPtr) const;
|
|
|
|
CutsceneCommand* GetCommandMM(uint32_t id, offset_t currentPtr) const;
|
2022-03-21 21:54:48 -04:00
|
|
|
};
|