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) {
|
|
|
|
char* type = arg_getType(elem);
|
|
|
|
if (strIsStartWith(type, "_class")) {
|
|
|
|
PikaObj* elemObj = arg_getPtr(elem);
|
2021-11-04 23:50:03 +08:00
|
|
|
obj_deinit(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-02 22:58:30 +08:00
|
|
|
args_foreach(self->attributeList, __foreach_ElementList_update, NULL);
|
|
|
|
}
|