Пример #1
0
        /// <summary>
        /// Pinpoint the plan on the main map
        /// </summary>
        public void Pinpoint(AttackPlanFrom activeAttacker)
        {
            World.Default.Map.Manipulators.SetManipulator(ManipulatorManagerTypes.Attack);
            var villages = Attacks.SelectMany(x => x.Attacker).Union(Target).ToArray();

            if (activeAttacker != null)
            {
                World.Default.Map.EventPublisher.AttackSelect(this, activeAttacker);
            }
            else
            {
                World.Default.Map.EventPublisher.AttackSelect(this, this);
            }
            World.Default.Map.SetCenter(villages);
        }