Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
641 stars 73 forks source link

fix: insert Name component before evaluating `LdtkEntity` #186

Closed Trouv closed 1 year ago

Trouv commented 1 year ago

Currently, if a user provides a custom constructor for Name via LdtkEntity registration, it will be overwritten by the plugin since it automatically inserts a name from the ldtk entity identifier. This change performs this insertion before evaluating LdtkEntity so that a user-provided Name will overwrite the plugin-provided Name instead.