@@ -22,7 +22,7 @@ TEST_SUITE("ModelScript") {
2222 CHECK_EQ (script.meshes [4 ], " AnotherTestModelMesh5.asc" );
2323 CHECK_EQ (script.meshes [5 ], " AnotherTestModelMesh(6).asc" );
2424
25- CHECK_EQ (script.animations .size (), 2 );
25+ CHECK_EQ (script.animations .size (), 3 );
2626 CHECK_EQ (script.animations [0 ].name , " aniName1" );
2727 CHECK_EQ (script.animations [0 ].layer , 111 );
2828 CHECK_EQ (script.animations [0 ].next , " aniNext1" );
@@ -122,6 +122,32 @@ TEST_SUITE("ModelScript") {
122122 CHECK_EQ (script.animations [1 ].tremors [0 ].field3 , 883 );
123123 CHECK_EQ (script.animations [1 ].tremors [0 ].field4 , 884 );
124124
125+ CHECK_EQ (script.animations [2 ].name , " aniName3" );
126+ CHECK_EQ (script.animations [2 ].layer , 113 );
127+ CHECK_EQ (script.animations [2 ].next , " aniNext3" );
128+ CHECK_EQ (script.animations [2 ].blend_in , 8 .0f );
129+ CHECK_EQ (script.animations [2 ].blend_out , 0 .0f );
130+ CHECK_EQ (script.animations [2 ].flags , zenkit::AnimationFlags::MOVE);
131+ CHECK_EQ (script.animations [2 ].model , " aniModel3" );
132+ CHECK_EQ (script.animations [2 ].direction , zenkit::AnimationDirection::FORWARD);
133+ CHECK_EQ (script.animations [2 ].first_frame , 223 );
134+ CHECK_EQ (script.animations [2 ].last_frame , 333 );
135+ CHECK_EQ (script.animations [2 ].fps , 25 .0f );
136+ CHECK_EQ (script.animations [2 ].speed , 0 .0f );
137+ CHECK_EQ (script.animations [2 ].collision_volume_scale , 1 .0f );
138+
139+ CHECK_EQ (script.animations [2 ].events .size (), 1 );
140+ CHECK_EQ (script.animations [2 ].events [0 ].type , zenkit::MdsEventType::ITEM_CREATE);
141+ CHECK_EQ (script.animations [2 ].events [0 ].slot , " eventSlot" );
142+ CHECK_EQ (script.animations [2 ].events [0 ].item , " eventItem" );
143+ CHECK_EQ (script.animations [2 ].events [0 ].attached , false );
144+
145+ CHECK_EQ (script.animations [2 ].sfx_ground .size (), 1 );
146+ CHECK_EQ (script.animations [2 ].sfx_ground [0 ].frame , 5 );
147+ CHECK_EQ (script.animations [2 ].sfx_ground [0 ].name , " sfxGrndName" );
148+ CHECK_EQ (script.animations [2 ].sfx_ground [0 ].empty_slot , false );
149+
150+
125151 CHECK_EQ (script.blends .size (), 3 );
126152 CHECK_EQ (script.blends [0 ].name , " blendName1" );
127153 CHECK_EQ (script.blends [0 ].next , " blendNext1" );
0 commit comments