Example #1
0
        public Tuple <List <string>, List <string>, List <string> > TemplateTypeNames()
        {
            if (Pop.Population.Templates == null)
            {
                return(new Tuple <List <string>, List <string>, List <string> >(new List <string>(), new List <string>(), new List <string>()));
            }
            List <string> TFBotTemplates     = new List <string>();
            List <string> WaveSpawnTemplates = new List <string>();
            List <string> GenericTemplates   = new List <string>();
            List <string> AllTemplateNames   = Pop.Population.Templates.Keys.ToList();

            foreach (string TemplateName in AllTemplateNames)
            {
                switch (Pop.Population.Templates[TemplateName.ToUpper()].TemplateType)
                {
                case "TFBOT":
                    TFBotTemplates.Add(TemplateName);
                    break;

                case "WAVESPAWN":
                    WaveSpawnTemplates.Add(TemplateName);
                    break;

                default:
                    GenericTemplates.Add(TemplateName);
                    break;
                }
            }
            return(new Tuple <List <string>, List <string>, List <string> >(TFBotTemplates, WaveSpawnTemplates, GenericTemplates));
        }