示例#1
0
            public SelectDestination(string order, SupportPowerManager manager, ChronoshiftPower power, int2 sourceLocation)
            {
                this.manager = manager;
                this.order = order;
                this.power = power;
                this.sourceLocation = sourceLocation;
                this.range = (power.Info as ChronoshiftPowerInfo).Range;

                // todo: this burns up more texture space every time someone uses chronoshift.
                validTile = UiOverlay.SynthesizeTile(0x0f);
                invalidTile = UiOverlay.SynthesizeTile(0x08);
                sourceTile = UiOverlay.SynthesizeTile(0x04);
            }
示例#2
0
 public SelectTarget(string order, SupportPowerManager manager, ChronoshiftPower power)
 {
     this.manager = manager;
     this.order = order;
     this.power = power;
     this.range = (power.Info as ChronoshiftPowerInfo).Range;
     tile = UiOverlay.SynthesizeTile(0x04);
 }
示例#3
0
 public SelectTarget(string order, SupportPowerManager manager, ChronoshiftPower power)
 {
     this.manager = manager;
     this.order = order;
     this.power = power;
     this.range = (power.Info as ChronoshiftPowerInfo).Range;
     tile = SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0);
 }
示例#4
0
            public SelectDestination(string order, SupportPowerManager manager, ChronoshiftPower power, CPos sourceLocation)
            {
                this.manager = manager;
                this.order = order;
                this.power = power;
                this.sourceLocation = sourceLocation;
                this.range = (power.Info as ChronoshiftPowerInfo).Range;

                validTile = SequenceProvider.GetSequence("overlay", "target-valid").GetSprite(0);
                invalidTile = SequenceProvider.GetSequence("overlay", "target-invalid").GetSprite(0);
                sourceTile = SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0);
            }
示例#5
0
            public SelectDestination(World world, string order, SupportPowerManager manager, ChronoshiftPower power, CPos sourceLocation)
            {
                this.manager = manager;
                this.order = order;
                this.power = power;
                this.sourceLocation = sourceLocation;
                this.range = ((ChronoshiftPowerInfo)power.Info).Range;

                var tileset = manager.self.World.TileSet.Id.ToLowerInvariant();
                validTile = world.Map.SequenceProvider.GetSequence("overlay", "target-valid-{0}".F(tileset)).GetSprite(0);
                invalidTile = world.Map.SequenceProvider.GetSequence("overlay", "target-invalid").GetSprite(0);
                sourceTile = world.Map.SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0);
            }