Triggering an event when drawing an entity using the isometry system

This commit is contained in:
Anonymus Raccoon
2020-05-03 14:28:10 +02:00
parent cc4bf3295b
commit ef4d01357a
+1
View File
@@ -59,6 +59,7 @@ gc_vector2 offset, struct tile *tile, float dt)
this->states->texture = NULL;
if (tile->entity) {
map_linker_update_entity(engine, tile->entity, tile, offset);
engine->trigger_event(engine, "linked_entity_draw", tile->entity, dt);
renderer = GETCMP(tile->entity, renderer);
if (!this->system.check_dependencies(&this->system, tile->entity))
return;