private void OnAlertChanged(AlertLevelChangedEvent args)
 {
     foreach (var(_, appearance) in EntityManager.EntityQuery <AlertLevelDisplayComponent, AppearanceComponent>())
     {
         appearance.SetData(AlertLevelDisplay.CurrentLevel, args.AlertLevel);
     }
 }
Example #2
0
 /// <summary>
 /// Updates all comms consoles belonging to the station that the alert level was set on
 /// </summary>
 /// <param name="args">Alert level changed event arguments</param>
 private void OnAlertLevelChanged(AlertLevelChangedEvent args)
 {
     foreach (var comp in EntityQuery <CommunicationsConsoleComponent>(true))
     {
         var entStation = _stationSystem.GetOwningStation(comp.Owner);
         if (args.Station == entStation)
         {
             UpdateCommsConsoleInterface(comp);
         }
     }
 }