mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-29 08:16:11 +00:00
4e55168eaa
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "094e79734" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "094e79734" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * Add EnumData.xml where some names are now externalized * Remove legacy typedefs for zapd, no longer needed!
37 lines
873 B
C++
37 lines
873 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "tinyxml2.h"
|
|
|
|
#include "OtherStructs/CutsceneOoT_Commands.h"
|
|
#include "OtherStructs/CutsceneMM_Commands.h"
|
|
#include "ZFile.h"
|
|
#include "ZResource.h"
|
|
|
|
class ZCutscene : public ZResource
|
|
{
|
|
public:
|
|
ZCutscene(ZFile* nParent);
|
|
~ZCutscene();
|
|
|
|
void ParseRawData() override;
|
|
|
|
Declaration* DeclareVar(const std::string& prefix, const std::string& bodyStr) override;
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
size_t GetRawDataSize() const override;
|
|
|
|
std::string GetSourceTypeName() const override;
|
|
ZResourceType GetResourceType() const override;
|
|
|
|
int32_t numCommands;
|
|
int32_t endFrame;
|
|
std::vector<CutsceneCommand*> commands;
|
|
|
|
protected:
|
|
CutsceneCommand* GetCommandOoT(uint32_t id, offset_t currentPtr) const;
|
|
CutsceneCommand* GetCommandMM(uint32_t id, offset_t currentPtr) const;
|
|
};
|