Animation *a(&ca);
int animationId(TypeDescription::GetTypeId("Animation"));
+ int boolId(TypeDescription::GetTypeId("Boolean"));
int frameId(TypeDescription::GetTypeId("ComplexAnimationFrame"));
+ int numberId(TypeDescription::GetTypeId("Number"));
+ int spriteId(TypeDescription::GetTypeId("Sprite"));
TypeDescription &td(TypeDescription::CreateOrGet("ComplexAnimation"));
td.SetSize(sizeof(ComplexAnimation));
td.AddSupertype(animationId, ((char *)a) - ((char *)&ca));
- Animation::AddFields(td, ca, ((char *)a) - ((char *)&ca));
+ Animation::AddFields(td, ca, ((char *)a) - ((char *)&ca), boolId, numberId, spriteId);
td.AddField("frames", FieldDescription(((char *)&ca.frames) - ((char *)&ca), frameId, true, true));