mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:44:56 +00:00
CScriptMidi and work on CGameArea loading
This commit is contained in:
@@ -270,7 +270,8 @@ bool MLVL::Cook(const hecl::ProjectPath& outPath, const hecl::ProjectPath& inPat
|
||||
{
|
||||
addedPaths.insert(path.hash());
|
||||
urde::SObjectTag tag = g_curSpec->BuildTagFromPath(path, btok);
|
||||
areaOut.deps.emplace_back(tag.id, tag.type);
|
||||
if (tag.id != -1)
|
||||
areaOut.deps.emplace_back(tag.id, tag.type);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -308,12 +309,14 @@ bool MLVL::Cook(const hecl::ProjectPath& outPath, const hecl::ProjectPath& inPat
|
||||
{
|
||||
addedPaths.insert(path.hash());
|
||||
urde::SObjectTag tag = g_curSpec->BuildTagFromPath(path, btok);
|
||||
areaOut.deps.emplace_back(tag.id, tag.type);
|
||||
if (tag.id != -1)
|
||||
areaOut.deps.emplace_back(tag.id, tag.type);
|
||||
}
|
||||
}
|
||||
|
||||
urde::SObjectTag tag = g_curSpec->BuildTagFromPath(areaPath, btok);
|
||||
areaOut.deps.emplace_back(tag.id, tag.type);
|
||||
if (tag.id != -1)
|
||||
areaOut.deps.emplace_back(tag.id, tag.type);
|
||||
}
|
||||
|
||||
++areaIdx;
|
||||
|
||||
@@ -518,7 +518,7 @@ bool MREA::PCCook(const hecl::ProjectPath& outPath,
|
||||
}
|
||||
}
|
||||
if (!good)
|
||||
secs.emplace_back(0, 0);
|
||||
secs.emplace_back(4, 0);
|
||||
}
|
||||
|
||||
/* PATH */
|
||||
|
||||
@@ -13,11 +13,11 @@ struct Midi : IScriptObject
|
||||
{
|
||||
DECL_YAML
|
||||
String<-1> name;
|
||||
Value<bool> unknown1;
|
||||
Value<bool> active;
|
||||
UniqueID32 song;
|
||||
Value<float> unknown2;
|
||||
Value<float> unknown3;
|
||||
Value<atUint32> unknown4;
|
||||
Value<float> fadeInTime;
|
||||
Value<float> fadeOutTime;
|
||||
Value<atUint32> volume;
|
||||
|
||||
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user