Content ecs containers (#22484)
This commit is contained in:
@@ -78,7 +78,7 @@ public sealed class MechGrabberSystem : EntitySystem
|
||||
if (!Resolve(uid, ref component))
|
||||
return;
|
||||
|
||||
component.ItemContainer.Remove(toRemove);
|
||||
_container.Remove(toRemove, component.ItemContainer);
|
||||
var mechxform = Transform(mech);
|
||||
var xform = Transform(toRemove);
|
||||
_transform.AttachToGridOrMap(toRemove, xform);
|
||||
@@ -175,7 +175,7 @@ public sealed class MechGrabberSystem : EntitySystem
|
||||
if (!_mech.TryChangeEnergy(equipmentComponent.EquipmentOwner.Value, component.GrabEnergyDelta))
|
||||
return;
|
||||
|
||||
component.ItemContainer.Insert(args.Args.Target.Value);
|
||||
_container.Insert(args.Args.Target.Value, component.ItemContainer);
|
||||
_mech.UpdateUserInterface(equipmentComponent.EquipmentOwner.Value);
|
||||
|
||||
args.Handled = true;
|
||||
|
||||
@@ -47,7 +47,7 @@ public sealed class MechAssemblySystem : EntitySystem
|
||||
if (!val && tagComp.Tags.Contains(tag))
|
||||
{
|
||||
component.RequiredParts[tag] = true;
|
||||
component.PartsContainer.Insert(args.Used);
|
||||
_container.Insert(args.Used, component.PartsContainer);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ public sealed partial class MechSystem : SharedMechSystem
|
||||
if (!Resolve(toInsert, ref battery, false))
|
||||
return;
|
||||
|
||||
component.BatterySlot.Insert(toInsert);
|
||||
_container.Insert(toInsert, component.BatterySlot);
|
||||
component.Energy = battery.CurrentCharge;
|
||||
component.MaxEnergy = battery.MaxCharge;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user