예제 #1
0
        static DocumentationType[] getTypes(string input)
        {
            var strings = input.Split(',');

            var types = new DocumentationType[strings.Length];

            for (int i = 0; i < types.Length; i++)
            {
                types[i] = (DocumentationType)Enum.Parse(typeof(DocumentationType), strings[i].Trim(), true);
            }

            if (types.Contains(DocumentationType.ALL))
            {
                types = new DocumentationType[] { DocumentationType.ACTORS, DocumentationType.PARTICLES, DocumentationType.WEAPONS, DocumentationType.WALLS, DocumentationType.TERRAIN, DocumentationType.MAPS, DocumentationType.SPELLS, DocumentationType.SOUNDS }
            }
            ;

            return(types);
        }
    }