コード例 #1
0
 private void HandleDirtyEvent(WindowSmoothDirtyEvent ev)
 {
     if (ev.Sender.HasComponent <WindowComponent>())
     {
         _dirtyEntities.Enqueue(ev.Sender);
     }
 }
コード例 #2
0
 private void HandleDirtyEvent(object sender, WindowSmoothDirtyEvent ev)
 {
     if (sender is IEntity senderEnt && senderEnt.HasComponent <WindowComponent>())
     {
         _dirtyEntities.Enqueue(senderEnt);
     }
 }