mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 09:52:20 -05:00
f31a841789
* git subrepo clone --force --branch=rebase2 C:/ZeldaStuff/ZAPDTR ZAPDTR/ subrepo: subdir: "ZAPDTR" merged: "6aa54a551" upstream: origin: "C:/ZeldaStuff/ZAPDTR" branch: "rebase2" commit: "6aa54a551" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * git subrepo clone --force --branch=rebase2 C:/ZeldaStuff/ZAPDTR ZAPDTR/ subrepo: subdir: "ZAPDTR" merged: "88b012240" upstream: origin: "C:/ZeldaStuff/ZAPDTR" branch: "rebase2" commit: "88b012240" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Update (its broken) * fix the enum * git subrepo push --remote=C:/ZeldaStuff/ZAPDTR/ ZAPDTR subrepo: subdir: "ZAPDTR" merged: "b7b6e1c82" upstream: origin: "C:/ZeldaStuff/ZAPDTR/" branch: "rebase2" commit: "b7b6e1c82" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * New names for LUS actions * git subrepo push --remote=C:/ZeldaStuff/ZAPDTR/ ZAPDTR subrepo: subdir: "ZAPDTR" merged: "c5cfebeee" upstream: origin: "C:/ZeldaStuff/ZAPDTR/" branch: "rebase2" commit: "c5cfebeee" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * git subrepo clone (merge) --force --branch=rebase2 C:/ZeldaStuff/ZAPDTR ZAPDTR/ subrepo: subdir: "ZAPDTR" merged: "d5f4769b8" upstream: origin: "C:/ZeldaStuff/ZAPDTR" branch: "rebase2" commit: "d5f4769b8" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Fix missing commands in the exporter. * Cleanups. * git subrepo pull --force --remote=https://github.com/harbourmasters/ZAPDTR --branch=master ZAPDTR subrepo: subdir: "ZAPDTR" merged: "d4c35b90a" upstream: origin: "https://github.com/harbourmasters/ZAPDTR" branch: "master" commit: "d4c35b90a" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Add unordered_map include to fix MacOS * fix string_view * Update Main.cpp * fix string view * So close I can almost taste it * So close * Fix missed git marker. * Fix surface types and * Update ZFile.cpp * Delete Jenkinsfile --------- Co-authored-by: Christopher Leggett <chris@leggett.dev> Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
141 lines
3.8 KiB
C++
141 lines
3.8 KiB
C++
#pragma once
|
|
|
|
#include "Cutscene_Commands.h"
|
|
|
|
enum class CutsceneMMCommands
|
|
{
|
|
/* 0x00A */ CS_CMD_TEXTBOX = 0xA,
|
|
/* 0x05A */ CS_CMD_CAMERA = 0x5A,
|
|
/* 0x096 */ CS_CMD_MISC = 0x96,
|
|
/* 0x097 */ CS_CMD_SET_LIGHTING,
|
|
/* 0x098 */ CS_CMD_SCENE_TRANS_FX,
|
|
/* 0x099 */ CS_CMD_MOTIONBLUR,
|
|
/* 0x09A */ CS_CMD_GIVETATL,
|
|
/* 0x09B */ CS_CMD_FADESCREEN,
|
|
/* 0x09C */ CS_CMD_FADESEQ,
|
|
/* 0x09D */ CS_CMD_SETTIME,
|
|
/* 0x0C8 */ CS_CMD_SET_PLAYER_ACTION = 0xC8,
|
|
/* 0x0FA */ CS_CMD_UNK_FA = 0xFA,
|
|
/* 0x0FE */ CS_CMD_UNK_FE = 0xFE,
|
|
/* 0x0FF */ CS_CMD_UNK_FF,
|
|
/* 0x100 */ CS_CMD_UNK_100,
|
|
/* 0x101 */ CS_CMD_UNK_101,
|
|
/* 0x102 */ CS_CMD_UNK_102,
|
|
/* 0x103 */ CS_CMD_UNK_103,
|
|
/* 0x104 */ CS_CMD_UNK_104,
|
|
/* 0x105 */ CS_CMD_UNK_105,
|
|
/* 0x108 */ CS_CMD_UNK_108 = 0x108,
|
|
/* 0x109 */ CS_CMD_UNK_109,
|
|
/* 0x12C */ CS_CMD_PLAYSEQ = 0x12C,
|
|
/* 0x12D */ CS_CMD_UNK_12D,
|
|
/* 0x130 */ CS_CMD_130 = 0x130,
|
|
/* 0x131 */ CS_CMD_131 = 0x131,
|
|
/* 0x132 */ CS_CMD_132 = 0x132,
|
|
/* 0x133 */ CS_CMD_STOPSEQ,
|
|
/* 0x134 */ CS_CMD_PLAYAMBIENCE,
|
|
/* 0x135 */ CS_CMD_FADEAMBIENCE,
|
|
/* 0x15E */ CS_CMD_TERMINATOR = 0x15E,
|
|
/* 0x15F */ CS_CMD_CHOOSE_CREDITS_SCENES,
|
|
/* 0x190 */ CS_CMD_RUMBLE = 0x190,
|
|
};
|
|
|
|
class CutsceneSubCommandEntry_GenericMMCmd : public CutsceneSubCommandEntry
|
|
{
|
|
public:
|
|
CutsceneMMCommands commandId;
|
|
|
|
CutsceneSubCommandEntry_GenericMMCmd(const std::vector<uint8_t>& rawData, offset_t rawDataIndex,
|
|
CutsceneMMCommands cmdId);
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
};
|
|
|
|
class CutsceneMMCommand_GenericCmd : public CutsceneCommand
|
|
{
|
|
public:
|
|
CutsceneMMCommand_GenericCmd(const std::vector<uint8_t>& rawData, offset_t rawDataIndex,
|
|
CutsceneMMCommands cmdId);
|
|
|
|
std::string GetCommandMacro() const override;
|
|
};
|
|
|
|
// TODO: MM cutscene camera command is implemented as a placeholder until we better understand how
|
|
// it works
|
|
class CutsceneSubCommandEntry_Camera : public CutsceneSubCommandEntry
|
|
{
|
|
public:
|
|
uint32_t unk_08;
|
|
|
|
CutsceneSubCommandEntry_Camera(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
size_t GetRawSize() const override;
|
|
};
|
|
|
|
class CutsceneMMCommand_Camera : public CutsceneCommand
|
|
{
|
|
public:
|
|
CutsceneMMCommand_Camera(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
|
|
std::string GetCommandMacro() const override;
|
|
};
|
|
|
|
class CutsceneSubCommandEntry_FadeScreen : public CutsceneSubCommandEntry
|
|
{
|
|
public:
|
|
uint8_t unk_06;
|
|
uint8_t unk_07;
|
|
uint8_t unk_08;
|
|
uint8_t unk_09;
|
|
uint8_t unk_0A;
|
|
uint8_t unk_0B;
|
|
|
|
CutsceneSubCommandEntry_FadeScreen(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
size_t GetRawSize() const override;
|
|
};
|
|
|
|
class CutsceneMMCommand_FadeScreen : public CutsceneCommand
|
|
{
|
|
public:
|
|
CutsceneMMCommand_FadeScreen(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
|
|
std::string GetCommandMacro() const override;
|
|
};
|
|
|
|
class CutsceneSubCommandEntry_FadeSeq : public CutsceneSubCommandEntry
|
|
{
|
|
public:
|
|
uint32_t unk_08;
|
|
|
|
CutsceneSubCommandEntry_FadeSeq(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
size_t GetRawSize() const override;
|
|
};
|
|
|
|
class CutsceneMMCommand_FadeSeq : public CutsceneCommand
|
|
{
|
|
public:
|
|
CutsceneMMCommand_FadeSeq(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
|
|
std::string GetCommandMacro() const override;
|
|
};
|
|
|
|
class CutsceneSubCommandEntry_NonImplemented : public CutsceneSubCommandEntry
|
|
{
|
|
public:
|
|
CutsceneSubCommandEntry_NonImplemented(const std::vector<uint8_t>& rawData,
|
|
offset_t rawDataIndex);
|
|
};
|
|
|
|
class CutsceneMMCommand_NonImplemented : public CutsceneCommand
|
|
{
|
|
public:
|
|
CutsceneMMCommand_NonImplemented(const std::vector<uint8_t>& rawData, offset_t rawDataIndex);
|
|
};
|