Beispiel #1
0
        public static string GenerateFile(Edicts edicts)
        {
            int k = 0;
            List <EdictToggleGenerator> edictElements = new List <EdictToggleGenerator>();

            for (int i = 0; i < edicts.Length; i++)
            {
                edictElements.Add(new EdictToggleGenerator(edicts[i].name, k++, k++));
            }
            return(string.Join("", edictElements));
        }
        public static string GenerateFile(Edicts edicts)
        {
            List <EventGenerator> eventElements = new List <EventGenerator>();
            int currentId = 0;

            for (int i = 0; i < edicts.Length; i++)
            {
                eventElements.Add(new EventGenerator(edicts[i].name, currentId++, currentId++));
            }
            return(Join(eventElements));
        }
        public static string GenerateFile(Edicts edicts, string langueName)
        {
            List <LangueGenerator> generators = new List <LangueGenerator>();

            for (int i = 0; i < edicts.Length; i++)
            {
                generators.Add(new LangueGenerator(edicts[i]));
            }

            return(Join(generators, langueName));
        }