metaforce/DataSpec/DNAMP1/ScriptObjects/HUDMemo.hpp

30 lines
800 B
C++

#pragma once
#include "../../DNACommon/DNACommon.hpp"
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec::DNAMP1 {
struct HUDMemo : IScriptObject {
AT_DECL_DNA_YAMLV
String<-1> name;
Value<float> firstMessageTimer;
Value<bool> unknown1;
Value<atUint32> memoType;
UniqueID32 message;
Value<bool> active;
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const override {
if (message.isValid()) {
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(message);
ent->name = name + "_message";
}
}
void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut,
std::vector<hecl::ProjectPath>& lazyOut) const override {
g_curSpec->flattenDependencies(message, pathsOut);
}
};
} // namespace DataSpec::DNAMP1