From 42ed7a36ec42c7a3c5939ea876c8f711cc7fc23d Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Sat, 2 Nov 2024 12:26:09 -0400 Subject: [PATCH] Updating ec system for each macro. --- seika/ecs/ec_system.h | 2 +- seika/version_info.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/seika/ecs/ec_system.h b/seika/ecs/ec_system.h index 2d4b3c7..fa6c11e 100644 --- a/seika/ecs/ec_system.h +++ b/seika/ecs/ec_system.h @@ -15,7 +15,7 @@ ska_ecs_system_create_from_template_with_signature_string(TEMPLATE, #__VA_ARGS__ #define SKA_ECS_SYSTEM_REGISTER_FROM_TEMPLATE(TEMPLATE, ...) \ ska_ecs_system_register(ska_ecs_system_create_from_template_with_signature_string(TEMPLATE, #__VA_ARGS__)) -#define SKA_ECS_SYSTEM_ENTITIES_FOR(SYSTEM, VALUE) SKA_ARRAY_LIST_FOR_EACH(SYSTEM->entities, SkaEntity, VALUE) +#define SKA_ECS_SYSTEM_ENTITIES_FOR(SYSTEM, VALUE) for(SkaEntity VALUE = *(SkaEntity*)((SYSTEM)->entities->data), *VALUE##_ptr = (SkaEntity*)((SYSTEM)->entities->data), *VALUE##_end = VALUE##_ptr + (SYSTEM)->entities->size; VALUE##_ptr < VALUE##_end; VALUE = *++VALUE##_ptr) struct SkaECSSystem; diff --git a/seika/version_info.h b/seika/version_info.h index d81e3ff..cf49e6e 100644 --- a/seika/version_info.h +++ b/seika/version_info.h @@ -4,6 +4,6 @@ #define SKA_VERSION_MAJOR 0 #define SKA_VERSION_MINOR 2 -#define SKA_VERSION_PATCH 1 +#define SKA_VERSION_PATCH 2 #define SKA_VERSION (SKA_MACRO_TO_STRING(SKA_VERSION_MAJOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_MINOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_PATCH))