private void HandleDirtyEvent(WindowSmoothDirtyEvent ev) { if (ev.Sender.HasComponent <WindowComponent>()) { _dirtyEntities.Enqueue(ev.Sender); } }
private void HandleDirtyEvent(object sender, WindowSmoothDirtyEvent ev) { if (sender is IEntity senderEnt && senderEnt.HasComponent <WindowComponent>()) { _dirtyEntities.Enqueue(senderEnt); } }