Hull, Gap & WayPoint cloning, equipped items are removed when switching from character mode to wiring or mode or vice versa

This commit is contained in:
Regalis
2016-11-12 15:44:02 +02:00
parent 0aa4b7a93d
commit d403b38440
5 changed files with 24 additions and 4 deletions

View File

@@ -113,6 +113,16 @@ namespace Barotrauma
currentHull = Hull.FindHull(WorldPosition);
}
public override MapEntity Clone()
{
var clone = new WayPoint(rect, Submarine);
clone.idCardTags = idCardTags;
clone.spawnType = spawnType;
clone.assignedJob = assignedJob;
return clone;
}
public override bool IsMouseOn(Vector2 position)
{
if (IsHidden()) return false;