예제 #1
0
        private static void writeTitleInfo(StreamWriter writer, FactionInfo faction, HashSet <string> dupChecker)
        {
            string ck2Title = faction.getCK2Title();

            int size1 = dupChecker.Count;

            dupChecker.Add(ck2Title);
            int size2 = dupChecker.Count;

            if (size1 == size2)
            {
                return;
            }

            if (ck2Title != null && faction.getIsNewTitle())
            {
                Color color = faction.getColor();
                writer.WriteLine(ck2Title + " = {");
                writer.WriteLine("\tcolor={ " + color.R + " " + color.G + " " + color.B + " }");
                if (faction.getCK2Title() == "e_wre")
                {
                    writer.WriteLine("\tshort_name=yes");
                }
                writer.WriteLine("}");
            }
        }
예제 #2
0
 private static void outputAdjectives(StreamWriter writer, FactionInfo faction)
 {
     //if (faction.getCK2Title() == "e_persia") return;
     if (faction.getIsNewTitle())
     {
         string id      = faction.getCK2Title() + "_adj";
         string english = faction.getAdjective();
         string line    = LocalisationFormatter.format(id, english);
         writer.WriteLine(line);
     }
     else
     {
         string id = "correction_" + faction.getCK2Title() + "_adj";
         id = id.ToUpper();
         string english = faction.getAdjective();
         string line    = LocalisationFormatter.format(id, english);
         writer.WriteLine(line);
     }
 }