Implemented area cooker, added the ability to resave Prime 1 MREAs from the World Editor

This commit is contained in:
parax0
2016-01-31 19:29:10 -07:00
parent 7a28db3d40
commit e430cbfb73
19 changed files with 529 additions and 153 deletions

View File

@@ -70,6 +70,25 @@ CAnimationParameters::CAnimationParameters(IInputStream& SCLY, EGame Game)
}
}
void CAnimationParameters::Write(IOutputStream& rSCLY)
{
if (mGame <= eEchoes)
{
if (mpCharSet)
{
rSCLY.WriteLong(AnimSet()->ResID().ToLong());
rSCLY.WriteLong(mNodeIndex);
rSCLY.WriteLong(mUnknown1);
}
else
{
rSCLY.WriteLong(0xFFFFFFFF);
rSCLY.WriteLong(0);
rSCLY.WriteLong(0xFFFFFFFF);
}
}
}
CModel* CAnimationParameters::GetCurrentModel(s32 NodeIndex /*= -1*/)
{
if (!mpCharSet) return nullptr;