상속: OpenRA.Traits.SupportPower
예제 #1
0
            public SelectConditionTarget(World world, string order, SupportPowerManager manager, GrantExternalConditionPower power)
            {
                // Clear selection if using Left-Click Orders
                if (Game.Settings.Game.UseClassicMouseStyle)
                {
                    manager.Self.World.Selection.Clear();
                }

                this.manager = manager;
                this.order   = order;
                this.power   = power;
                range        = power.info.Range;
                tile         = world.Map.Rules.Sequences.GetSequence("overlay", "target-select").GetSprite(0);
            }
            public SelectConditionTarget(World world, string order, SupportPowerManager manager, GrantExternalConditionPower power)
            {
                // Clear selection if using Left-Click Orders
                if (Game.Settings.Game.UseClassicMouseStyle)
                {
                    manager.Self.World.Selection.Clear();
                }

                this.manager = manager;
                this.order   = order;
                this.power   = power;
                footprint    = power.info.Footprint.Where(c => !char.IsWhiteSpace(c)).ToArray();
                dimensions   = power.info.Dimensions;
                tile         = world.Map.Rules.Sequences.GetSequence("overlay", "target-select").GetSprite(0);
            }
예제 #3
0
            public SelectUpgradeTarget(World world, string order, SupportPowerManager manager, GrantExternalConditionPower power)
            {
                // Clear selection if using Left-Click Orders
                if (Game.Settings.Game.UseClassicMouseStyle)
                    manager.Self.World.Selection.Clear();

                this.manager = manager;
                this.order = order;
                this.power = power;
                range = power.info.Range;
                tile = world.Map.Rules.Sequences.GetSequence("overlay", "target-select").GetSprite(0);
            }