X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FSimpleAnimation.cpp;fp=src%2Fgraphics%2FSimpleAnimation.cpp;h=f1c1a724dea74e95b1ef8cdd85d4c75d55cb01e9;hb=be7b4addf295d6193ba2527cdd17cdb524339aed;hp=17a0857832ce8dcfbe75b297f9113515aad4f8a3;hpb=147732d7eaf3c082b9120a7f2b815a4a7886aa97;p=l2e.git diff --git a/src/graphics/SimpleAnimation.cpp b/src/graphics/SimpleAnimation.cpp index 17a0857..f1c1a72 100644 --- a/src/graphics/SimpleAnimation.cpp +++ b/src/graphics/SimpleAnimation.cpp @@ -19,12 +19,15 @@ void SimpleAnimation::CreateTypeDescription() { Animation *a(&sa); int animationId(TypeDescription::GetTypeId("Animation")); + int boolId(TypeDescription::GetTypeId("Boolean")); int numberId(TypeDescription::GetTypeId("Number")); + int spriteId(TypeDescription::GetTypeId("Sprite")); TypeDescription &td(TypeDescription::CreateOrGet("SimpleAnimation")); td.SetSize(sizeof(SimpleAnimation)); td.AddSupertype(animationId, ((char *)a) - ((char *)&sa)); + Animation::AddFields(td, sa, ((char *)a) - ((char *)&sa), boolId, numberId, spriteId); td.AddField("framecount", FieldDescription(((char *)&sa.numFrames) - ((char *)&sa), numberId, false)); td.AddField("col", FieldDescription(((char *)&sa.col) - ((char *)&sa), numberId, false)); td.AddField("row", FieldDescription(((char *)&sa.row) - ((char *)&sa), numberId, false));