#pragma once #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec::DNAMP1 { struct Midi : IScriptObject { AT_DECL_DNA_YAMLV String<-1> name; Value active; UniqueID32 song; Value fadeInTime; Value fadeOutTime; Value volume; void nameIDs(PAKRouter& pakRouter) const override { if (song.isValid()) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(song); ent->name = name + "_song"; } } void gatherDependencies(std::vector& pathsOut, std::vector& lazyOut) const override { // Dedicated PAK for this // g_curSpec->flattenDependencies(song, pathsOut); } }; } // namespace DataSpec::DNAMP1