Files
botw/lib/EventFlow/include/evfl/ResTimeline.h
T
Léo Lam 18c60323a9 Switch to subrepos
git subrepo clone https://github.com/open-ead/sead lib/sead

subrepo:
  subdir:   "lib/sead"
  merged:   "1b66e825d"
upstream:
  origin:   "https://github.com/open-ead/sead"
  branch:   "master"
  commit:   "1b66e825d"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone (merge) https://github.com/open-ead/nnheaders lib/NintendoSDK

subrepo:
  subdir:   "lib/NintendoSDK"
  merged:   "9ee21399f"
upstream:
  origin:   "https://github.com/open-ead/nnheaders"
  branch:   "master"
  commit:   "9ee21399f"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone https://github.com/open-ead/agl lib/agl

subrepo:
  subdir:   "lib/agl"
  merged:   "7c063271b"
upstream:
  origin:   "https://github.com/open-ead/agl"
  branch:   "master"
  commit:   "7c063271b"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone https://github.com/open-ead/EventFlow lib/EventFlow

subrepo:
  subdir:   "lib/EventFlow"
  merged:   "c35d21b34"
upstream:
  origin:   "https://github.com/open-ead/EventFlow"
  branch:   "master"
  commit:   "c35d21b34"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2022-03-21 21:31:42 +01:00

81 lines
1.8 KiB
C++

#pragma once
#include <ore/BinaryFile.h>
#include <ore/EnumUtil.h>
#include <ore/Types.h>
namespace ore {
struct ResEndian;
struct ResMetaData;
} // namespace ore
namespace evfl {
struct ResActor;
struct ResTrigger {
u16 clip_index;
u8 trigger_type;
};
struct ResCut {
float start_time;
ore::BinTPtr<ore::BinString> name;
ore::BinTPtr<ore::ResMetaData> params;
};
struct ResClip {
float start_time;
float duration;
u16 actor_index;
u16 actor_action_index;
u8 _c;
ore::BinTPtr<ore::ResMetaData> params;
};
struct ResOneshot {
float time;
u16 actor_index;
u16 actor_action_index;
u32 _8;
u32 _c;
ore::BinTPtr<ore::ResMetaData> params;
};
struct ResSubtimeline {
ore::BinTPtr<ore::BinString> name;
};
struct ResTimeline {
/// 'TLIN'
u32 magic;
/// String pool offset (relative to this structure)
int string_pool_offset;
u32 reserved_8;
u32 reserved_c;
float duration;
u16 num_actors;
u16 num_actions;
u16 num_clips;
u16 num_oneshots;
u16 num_subtimelines;
u16 num_cuts;
ore::BinTPtr<ore::BinString> name;
ore::BinTPtr<ResActor> actors;
ore::BinTPtr<ResClip> clips;
ore::BinTPtr<ResOneshot> oneshots;
ore::BinTPtr<ResTrigger> triggers;
ore::BinTPtr<ResSubtimeline> subtimelines;
ore::BinTPtr<ResCut> cuts;
ore::BinTPtr<ore::ResMetaData> params;
};
void SwapEndian(ore::ResEndian* endian, ResTrigger* trigger);
void SwapEndian(ore::ResEndian* endian, ResCut* cut);
void SwapEndian(ore::ResEndian* endian, ResClip* clip);
void SwapEndian(ore::ResEndian* endian, ResOneshot* oneshot);
void SwapEndian(ore::ResEndian* endian, ResSubtimeline* subtimeline);
void SwapEndian(ore::ResEndian* endian, ResTimeline* timeline);
} // namespace evfl