public SelectSpawnActorPowerTarget(string order, SupportPowerManager manager, SpawnActorPower power, MouseButton button) { // Clear selection if using Left-Click Orders if (Game.Settings.Game.UseClassicMouseStyle) { manager.Self.World.Selection.Clear(); } this.manager = manager; this.power = power; this.order = order; expectedButton = button; info = (SpawnActorPowerInfo)power.Info; }
public bool Validate(World world, SpawnActorPowerInfo info, CPos cell) { if (!world.Map.Contains(cell)) { return(false); } if (!info.AllowUnderShroud && world.ShroudObscures(cell)) { return(false); } if (info.Terrain != null && !info.Terrain.Contains(world.Map.GetTerrainInfo(cell).Type)) { return(false); } return(true); }
public SpawnActorPower(Actor self, SpawnActorPowerInfo info) : base(self, info) { }
public SpawnActorPower(Actor self, SpawnActorPowerInfo info) : base(self, info) { Info = info; }