예제 #1
0
 public override bool Equals(object a)
 {
     if (a is TeleporterDestination)
     {
         TeleporterDestination b = (TeleporterDestination)a;
         return(b.MapName == MapName && b.TileX == TileX && b.TileY == TileY);
     }
     return(false);
 }
예제 #2
0
        internal void Resolver(StardewValley.Farmer who, string answer)
        {
            if (answer == "cancel")
            {
                return;
            }
            int i = Convert.ToInt32(answer);

            Configs.TeleporterDestination destination = this.List.Destinations[i];
            Game1.warpFarmer(destination.MapName, destination.TileX, destination.TileY, false);
        }