Esempio n. 1
0
        public Action GetAction(PlayerView playerView, DebugInterface debugInterface)
        {
            WorldConfig.Init(playerView);

            int entityCount = playerView.Entities.Count(e => e.IsMyEntity);

            var actions = new Dictionary <int, Model.EntityAction>(entityCount);

            TurretManager.Manage(playerView, actions);

            BuilderUnitManager.Manage(playerView, actions);

            BuilderBaseManager.Manage(playerView, actions);

            RangedBaseManager.Manage(playerView, actions);

            WarriorManager.ManageUnits(playerView, actions);

            return(new Action(actions));
        }