Closed Indra-db closed 1 month ago
for the units addon, all types are defined as ECS_DECLARE(EcsCenti) which translated to ecs_entity_t EcsCenti, FLECS_IDEcsCentiID_;
ECS_DECLARE(EcsCenti)
ecs_entity_t EcsCenti, FLECS_IDEcsCentiID_;
when importing units module with FlecsUnitsImport , you only set EcsCenti variable, and FLECS_IDEcsCentiID_ remains 0 initialized.
FlecsUnitsImport
EcsCenti
FLECS_IDEcsCentiID_
these statics are also duplicated due to it, and for example exposed twice when generating bindings for it
Up to you how you would like to solve this, either by removing the FLECS_IDxxxID_ variant or setting Ecsx = FLECS_IDxxxID_
FLECS_IDxxxID_
Ecsx = FLECS_IDxxxID_
Hm. I should have filed this as a bug instead, instead of a blank issue. My first thought was "this isn't really a bug bug" , but on second thought, it is
Fixed!
for the units addon, all types are defined as
ECS_DECLARE(EcsCenti)
which translated toecs_entity_t EcsCenti, FLECS_IDEcsCentiID_;
when importing units module with
FlecsUnitsImport
, you only setEcsCenti
variable, andFLECS_IDEcsCentiID_
remains 0 initialized.these statics are also duplicated due to it, and for example exposed twice when generating bindings for it
Up to you how you would like to solve this, either by removing the
FLECS_IDxxxID_
variant or settingEcsx = FLECS_IDxxxID_