Content ecs containers (#22484)
This commit is contained in:
@@ -161,7 +161,7 @@ public partial class SharedBodySystem
|
||||
var partSlot = CreatePartSlot(parentEntity, connection, childPartComponent.PartType, parentPartComponent);
|
||||
var cont = Containers.GetContainer(parentEntity, GetPartSlotContainerId(connection));
|
||||
|
||||
if (partSlot == null || !cont.Insert(childPart))
|
||||
if (partSlot == null || !Containers.Insert(childPart, cont))
|
||||
{
|
||||
Log.Error($"Could not create slot for connection {connection} in body {prototype.ID}");
|
||||
QueueDel(childPart);
|
||||
|
||||
@@ -98,7 +98,7 @@ public partial class SharedBodySystem
|
||||
if (!Containers.TryGetContainer(partId, containerId, out var container))
|
||||
return false;
|
||||
|
||||
return container.Insert(organId);
|
||||
return Containers.Insert(organId, container);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -114,7 +114,7 @@ public partial class SharedBodySystem
|
||||
if (!HasComp<BodyPartComponent>(parent))
|
||||
return false;
|
||||
|
||||
return container.Remove(organId);
|
||||
return Containers.Remove(organId, container);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -396,7 +396,7 @@ public partial class SharedBodySystem
|
||||
return false;
|
||||
}
|
||||
|
||||
return body.RootContainer.Insert(partId);
|
||||
return Containers.Insert(partId, body.RootContainer);
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -446,7 +446,7 @@ public partial class SharedBodySystem
|
||||
return false;
|
||||
}
|
||||
|
||||
return container.Insert(partId);
|
||||
return Containers.Insert(partId, container);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user