pikapython/package/Arm2D/Arm2D_ElementList.c

16 lines
420 B
C
Raw Normal View History

2021-10-05 09:49:52 +08:00
#include "Arm2D_common.h"
2021-11-03 20:11:31 +08:00
#include "PikaVM.h"
2021-10-05 09:49:52 +08:00
2021-11-03 20:11:31 +08:00
int32_t __foreach_ElementList_update(Arg* elem, Args* buffs) {
ArgType type = arg_getType(elem);
2022-03-02 22:05:54 +08:00
if (ARG_TYPE_OBJECT == type) {
2021-11-03 20:11:31 +08:00
PikaObj* elemObj = arg_getPtr(elem);
2022-09-07 01:14:27 +08:00
obj_runNativeMethod(elemObj, "update", NULL);
2021-10-05 09:49:52 +08:00
}
return 0;
}
2021-11-03 20:11:31 +08:00
void Arm2D_ElementList_update(PikaObj* self) {
args_foreach(self->list, __foreach_ElementList_update, NULL);
2021-11-02 22:58:30 +08:00
}