pikapython/package/Arm2D/Arm2D_ElementList.c

18 lines
402 B
C
Raw Normal View History

2021-10-05 09:49:52 +08:00
#include "Arm2D_common.h"
int32_t __foreach_ElementList_update(Arg *elem, Args *buffs)
{
char *type = arg_getType(elem);
if (strIsStartWith(type, "_class"))
{
PikaObj *elemObj = arg_getPtr(elem);
2021-11-02 22:58:30 +08:00
obj_run(elemObj, "update()");
2021-10-05 09:49:52 +08:00
}
return 0;
}
2021-11-02 22:58:30 +08:00
void Arm2D_ElementList_update(PikaObj *self)
2021-10-05 09:49:52 +08:00
{
2021-11-02 22:58:30 +08:00
args_foreach(self->attributeList, __foreach_ElementList_update, NULL);
}