public static void WarpFarmerIntoDeepWoods(DeepWoods deepWoods) { if (deepWoods == null) { return; } Game1.player.FacingDirection = DeepWoodsEnterExit.EnterDirToFacingDirection(deepWoods.EnterDir); if (deepWoods.EnterDir == EnterDirection.FROM_TOP) { Game1.warpFarmer(deepWoods.Name, deepWoods.enterLocation.X, deepWoods.enterLocation.Y + 1, false); } else if (deepWoods.EnterDir == EnterDirection.FROM_RIGHT) { Game1.warpFarmer(deepWoods.Name, deepWoods.enterLocation.X + 1, deepWoods.enterLocation.Y, false); } else { Game1.warpFarmer(deepWoods.Name, deepWoods.enterLocation.X, deepWoods.enterLocation.Y, false); } }
public static void WarpFarmerIntoDeepWoodsFromServerObelisk(string name, Vector2 enterLocation) { Game1.player.FacingDirection = DeepWoodsEnterExit.EnterDirToFacingDirection(EnterDirection.FROM_TOP); Game1.warpFarmer(name, (int)enterLocation.X, (int)enterLocation.Y + 1, false); }