public void CreateTeleporter(TeleporterDefinition telDef) { DelCount += DeleteTeleporters(telDef.Source); Count++; new Teleporter(telDef.Destination.Pos, telDef.Destination.Map).MoveToWorld(telDef.Source.Pos, telDef.Source.Map); if (!telDef.Back) { return; } DelCount += DeleteTeleporters(telDef.Destination); Count++; new Teleporter(telDef.Source.Pos, telDef.Source.Map).MoveToWorld(telDef.Destination.Pos, telDef.Destination.Map); }
public bool Equals(TeleporterDefinition other) => Source.Equals(other.Source) && Destination.Equals(other.Destination) && Back == other.Back;