]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/ComplexAnimation.cpp
removed type resolution from Animation::addFields
[l2e.git] / src / graphics / ComplexAnimation.cpp
index 253f0c450d633f64e9b52d521b5c3af858152a2c..ab19fd013fd46bde17e674cd1de041724f3a97f6 100644 (file)
@@ -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));