public override void Execute() { MoveObstacleMidgameSubPhase.PlaceObstacle( GetString("name"), new Vector3(float.Parse(GetString("positionX")), float.Parse(GetString("positionY")), float.Parse(GetString("positionZ"))), new Vector3(float.Parse(GetString("rotationX")), float.Parse(GetString("rotationY")), float.Parse(GetString("rotationZ"))) ); }
private void StartMoveObstacleSubphase() { MoveObstacleMidgameSubPhase subphase = Phases.StartTemporarySubPhaseNew <MoveObstacleMidgameSubPhase>( "Move obstacle", Triggers.FinishTrigger ); MoveObstacleMidgameSubPhase.ChosenObstacle = ChosenObstacle; subphase.DescriptionShort = HostUpgrade.UpgradeInfo.Name; subphase.DescriptionLong = "Place this obstacle beyond range 2 of any board edge of ship and beyond range 1 of other obstacles"; subphase.ImageSource = HostUpgrade; subphase.SetupFilter = SetupFilter; subphase.Start(); }
public override void Execute() { string obstacleName = GetString("name"); Console.Write($"Obstacle is moved: {obstacleName}"); MoveObstacleMidgameSubPhase.PlaceObstacle ( obstacleName, new Vector3 ( float.Parse(GetString("positionX"), CultureInfo.InvariantCulture), float.Parse("0"), float.Parse(GetString("positionZ"), CultureInfo.InvariantCulture) ), new Vector3 ( float.Parse(GetString("rotationX"), CultureInfo.InvariantCulture), float.Parse(GetString("rotationY"), CultureInfo.InvariantCulture), float.Parse(GetString("rotationZ"), CultureInfo.InvariantCulture) ) ); }