Predicted internals (#33800)

* Predicted gas pumps

I wanted to try out atmos and first thing I found.

* a

* Atmos device prediction

- Canisters
- Tanks
- Internals

AirMixes aren't predicted so nothing on that front but all the UIs should be a lot closer.

* Remove details range

* Gas tank prediction

* Even more sweeping changes

* Alerts

* rehg

* Popup fix

* Fix merge conflicts

* Fix

* Review
This commit is contained in:
metalgearsloth
2025-05-02 18:22:29 +10:00
committed by GitHub
parent d404422b5c
commit bd69fc612a
94 changed files with 1425 additions and 1167 deletions

View File

@@ -90,7 +90,7 @@ public sealed class UseDelaySystem : EntitySystem
/// </summary>
public bool IsDelayed(Entity<UseDelayComponent?> ent, string id = DefaultId)
{
if (!Resolve(ent, ref ent.Comp, false))
if (!Resolve(ent.Owner, ref ent.Comp, false))
return false;
if (!ent.Comp.Delays.TryGetValue(id, out var entry))
@@ -118,8 +118,14 @@ public sealed class UseDelaySystem : EntitySystem
/// <param name="info"></param>
/// <param name="id"></param>
/// <returns></returns>
public bool TryGetDelayInfo(Entity<UseDelayComponent> ent, [NotNullWhen(true)] out UseDelayInfo? info, string id = DefaultId)
public bool TryGetDelayInfo(Entity<UseDelayComponent?> ent, [NotNullWhen(true)] out UseDelayInfo? info, string id = DefaultId)
{
if (!Resolve(ent.Owner, ref ent.Comp, false))
{
info = null;
return false;
}
return ent.Comp.Delays.TryGetValue(id, out info);
}