예제 #1
0
 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);
 }
예제 #2
0
 public bool Equals(TeleporterDefinition other) =>
 Source.Equals(other.Source) && Destination.Equals(other.Destination) && Back == other.Back;