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) {
|
2021-11-20 21:25:05 +08:00
|
|
|
ArgType type = arg_getType(elem);
|
|
|
|
if (TYPE_OBJECT == type) {
|
2021-11-03 20:11:31 +08:00
|
|
|
PikaObj* elemObj = arg_getPtr(elem);
|
2021-11-30 19:21:00 +08:00
|
|
|
pikaVM_runAsm(elemObj, "0 RUN update\n");
|
2021-10-05 09:49:52 +08:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-11-03 20:11:31 +08:00
|
|
|
void Arm2D_ElementList_update(PikaObj* self) {
|
2021-11-20 21:25:05 +08:00
|
|
|
args_foreach(self->list, __foreach_ElementList_update, NULL);
|
2021-11-02 22:58:30 +08:00
|
|
|
}
|