Пример #1
0
 public void AddVector(ViralVector vector)
 {
     if (!DistributedVectors.Contains(vector))
     {
         DistributedVectors.Add(vector);
     }
 }
Пример #2
0
        private void createViruses()
        {
            // new InfiltrationVector("Webserver", 10, InfiltrationVector.InfiltrationType.Vulnerability);
            // new InfiltrationVector("Audio", 100);

            var musicVector     = new ViralVector("Music", 30, "mdi mdi-music");
            var movieVector     = new ViralVector("Movie", 60, "mdi mdi-movie-open");
            var gameVector      = new ViralVector("Game", 300, "mdi mdi-gamepad-variant-outline");
            var antiVirusVector = new ViralVector("Anti-Virus", 600, "mdi mdi-application");

            new ViralDistributor("XXX Website", 100, new[] { "mdi-web" }, new[] { movieVector });
            new ViralDistributor("Pirate Website", 80, new[] { "mdi-pirate" },
                                 new[] { musicVector, movieVector, gameVector, antiVirusVector });
        }
Пример #3
0
        public static List <ViralDistributor> GetDistributionChannels(ViralVector vector)
        {
            var distributors = new List <ViralDistributor>();

            foreach (ViralDistributor distributor in ViralDistributor.List)
            {
                if (distributor.DistributedVectors.Contains(vector))
                {
                    distributors.Add(distributor);
                }
            }

            return(distributors);
        }