2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 10:27:42 +00:00

Various MREA-generation fixes

This commit is contained in:
Jack Andersen
2016-08-12 15:23:27 -10:00
parent a0f6c18e35
commit 7a653bc3af
9 changed files with 89 additions and 9 deletions

View File

@@ -159,6 +159,25 @@ struct WorldTeleporter : IScriptObject
__dna_writer.writeFloatBig(unknown16);
}
}
size_t binarySize(size_t __isz) const
{
__isz = IScriptObject::binarySize(__isz);
__isz += name.size() + 1;
__isz = mlvl.binarySize(__isz);
__isz = mrea.binarySize(__isz);
__isz = animationParameters.binarySize(__isz);
__isz = model1.binarySize(__isz);
__isz = model2.binarySize(__isz);
__isz = font.binarySize(__isz);
__isz = strg.binarySize(__isz);
if (propertyCount == 26)
{
__isz += audioStream.size() + 1;
__isz += 13;
}
return __isz + 64;
}
void read(athena::io::YAMLDocReader& __dna_docin)
{