Content update for NetEntities (#18935)

This commit is contained in:
metalgearsloth
2023-09-11 09:42:41 +10:00
committed by GitHub
parent 389c8d1a2c
commit 5a0fc68be2
526 changed files with 3058 additions and 2215 deletions

View File

@@ -38,7 +38,7 @@ public sealed class BinSystem : EntitySystem
private void OnGetState(EntityUid uid, BinComponent component, ref ComponentGetState args)
{
args.State = new BinComponentState(component.Items, component.Whitelist, component.MaxItems);
args.State = new BinComponentState(GetNetEntityList(component.Items), component.Whitelist, component.MaxItems);
}
private void OnHandleState(EntityUid uid, BinComponent component, ref ComponentHandleState args)
@@ -46,7 +46,7 @@ public sealed class BinSystem : EntitySystem
if (args.Current is not BinComponentState state)
return;
component.Items = new List<EntityUid>(state.Items);
component.Items = EnsureEntityList<BinComponent>(state.Items, uid);
component.Whitelist = state.Whitelist;
component.MaxItems = state.MaxItems;
}

View File

@@ -81,7 +81,7 @@ public sealed class DumpableSystem : EntitySystem
StartDoAfter(uid, args.Target, args.User, dumpable);
},
Text = Loc.GetString("dump-disposal-verb-name", ("unit", args.Target)),
IconEntity = uid
IconEntity = GetNetEntity(uid)
};
args.Verbs.Add(verb);
}
@@ -95,7 +95,7 @@ public sealed class DumpableSystem : EntitySystem
StartDoAfter(uid, args.Target, args.User, dumpable);
},
Text = Loc.GetString("dump-placeable-verb-name", ("surface", args.Target)),
IconEntity = uid
IconEntity = GetNetEntity(uid)
};
args.Verbs.Add(verb);
}
@@ -108,7 +108,7 @@ public sealed class DumpableSystem : EntitySystem
float delay = storage.StoredEntities.Count * (float) dumpable.DelayPerItem.TotalSeconds * dumpable.Multiplier;
_doAfterSystem.TryStartDoAfter(new DoAfterArgs(userUid, delay, new DumpableDoAfterEvent(), storageUid, target: targetUid, used: storageUid)
_doAfterSystem.TryStartDoAfter(new DoAfterArgs(EntityManager, userUid, delay, new DumpableDoAfterEvent(), storageUid, target: targetUid, used: storageUid)
{
BreakOnTargetMove = true,
BreakOnUserMove = true,