2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 23:47:43 +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

@@ -109,6 +109,19 @@ struct Oculus : IScriptObject
__dna_writer.writeFloatBig(unknown8);
}
size_t binarySize(size_t __isz) const
{
__isz = IScriptObject::binarySize(__isz);
__isz += name.size() + 1;
__isz = patternedInfo.binarySize(__isz);
__isz = actorParameters.binarySize(__isz);
__isz = damageVulnerabilty.binarySize(__isz);
__isz = damageInfo.binarySize(__isz);
if (propertyCount == 16)
__isz += 4;
return __isz + 64;
}
void read(athena::io::YAMLDocReader& __dna_docin)
{
IScriptObject::read(__dna_docin);