コード例 #1
0
 public void Write(ParadoxStreamWriter writer)
 {
     if (Name != null)
     {
         writer.WriteLine("name", Name, ValueWrite.Quoted);
     }
     if (Leader != null)
     {
         writer.Write("leader", Leader);
     }
     foreach(var val in Units)
     {
         writer.Write("unit", val);
     }
     if (Attachments != null)
     {
         writer.Write("attachments", w =>
         {
             foreach (var val in Attachments)
             {
                 w.Write(String.Empty, val);
             }
         });
     }
 }
コード例 #2
0
ファイル: Events.cs プロジェクト: nickbabcock/EU4.Savegame
        public void Write(ParadoxStreamWriter writer)
        {
            foreach (var evt in EventNames)
                writer.WriteLine("id", evt, ValueWrite.Quoted);

            foreach (var evt in EventIds)
                writer.Write("id", evt);
        }
コード例 #3
0
 public void Write(ParadoxStreamWriter writer)
 {
     writer.Write("setgameplayoptions={ ");
     foreach (var option in options)
     {
         writer.Write(option);
         writer.Write(" ");
     }
     writer.WriteLine("}");
 }
コード例 #4
0
 public void Write(ParadoxStreamWriter writer)
 {
     if (Name != null)
     {
         writer.WriteLine("name", Name, ValueWrite.Quoted);
     }
     if (Type != null)
     {
         writer.WriteLine("type", Type);
     }
     writer.WriteLine("morale", Morale);
     writer.WriteLine("strength", Strength);
 }
コード例 #5
0
 public void Write(ParadoxStreamWriter writer)
 {
     if (Name != null)
     {
         writer.WriteLine("name", Name, ValueWrite.Quoted);
     }
     writer.WriteLine("tax", Tax);
     foreach(var val in Cores)
     {
         writer.WriteLine("add_core", val);
     }
     if (TopProvinces != null)
     {
         writer.Write("top_provinces={ ");
         foreach (var val in TopProvinces)
         {
             writer.Write(val, ValueWrite.Quoted);
             writer.Write(" ");
         }
         writer.WriteLine("}");
     }
     foreach(var val in Armies)
     {
         writer.Write("army", val);
     }
 }
コード例 #6
0
 public void Write(ParadoxStreamWriter writer)
 {
     writer.WriteLine("id", Id);
     writer.WriteLine("type", Type);
 }