AlwaysHotSystem.cs 448 B

12345678910111213141516171819
  1. using Content.Shared.Temperature;
  2. using Content.Shared.Temperature.Components;
  3. namespace Content.Shared.Temperature.Systems;
  4. public sealed class AlwaysHotSystem : EntitySystem
  5. {
  6. public override void Initialize()
  7. {
  8. base.Initialize();
  9. SubscribeLocalEvent<AlwaysHotComponent, IsHotEvent>(OnIsHot);
  10. }
  11. private void OnIsHot(Entity<AlwaysHotComponent> ent, ref IsHotEvent args)
  12. {
  13. args.IsHot = true;
  14. }
  15. }