X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FComplexAnimation.cpp;fp=src%2Fgraphics%2FComplexAnimation.cpp;h=ab19fd013fd46bde17e674cd1de041724f3a97f6;hb=be7b4addf295d6193ba2527cdd17cdb524339aed;hp=253f0c450d633f64e9b52d521b5c3af858152a2c;hpb=147732d7eaf3c082b9120a7f2b815a4a7886aa97;p=l2e.git diff --git a/src/graphics/ComplexAnimation.cpp b/src/graphics/ComplexAnimation.cpp index 253f0c4..ab19fd0 100644 --- a/src/graphics/ComplexAnimation.cpp +++ b/src/graphics/ComplexAnimation.cpp @@ -19,13 +19,16 @@ void ComplexAnimation::CreateTypeDescription() { 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));