Fixed NotImplementedException when attempting to clone linked submarines
This commit is contained in:
@@ -99,7 +99,12 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
return Vector2.Distance(position, WorldPosition) < 50.0f;
|
return Vector2.Distance(position, WorldPosition) < 50.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override MapEntity Clone()
|
||||||
|
{
|
||||||
|
return CreateDummy(Submarine, filePath, Position);
|
||||||
|
}
|
||||||
|
|
||||||
private void GenerateWallVertices(XElement rootElement)
|
private void GenerateWallVertices(XElement rootElement)
|
||||||
{
|
{
|
||||||
List<Vector2> points = new List<Vector2>();
|
List<Vector2> points = new List<Vector2>();
|
||||||
|
|||||||
@@ -163,10 +163,7 @@ namespace Barotrauma
|
|||||||
return (Submarine.RectContains(WorldRect, position));
|
return (Submarine.RectContains(WorldRect, position));
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual MapEntity Clone()
|
public abstract MapEntity Clone();
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static List<MapEntity> Clone(List<MapEntity> entitiesToClone)
|
public static List<MapEntity> Clone(List<MapEntity> entitiesToClone)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user