Beispiel #1
0
 public void DisplaySiege(ProtoSiegeDisplay siegeDisplayProtoBuf)
 {
     report.text += ("-----------------------------\n");
     report.text += ("Siege Report\n");
     report.text += ("-----------------------------\n");
     report.text += ("Besieged Fief: " + siegeDisplayProtoBuf.besiegedFief + "\n");
     report.text += ("Besieged Army: " + siegeDisplayProtoBuf.besiegerArmy + "\n");
     report.text += ("Siege Successful: " + siegeDisplayProtoBuf.besiegerWon + "\n");
     report.text += ("Siege Length: " + siegeDisplayProtoBuf.days + " days\n");
     report.text += ("Loot Lost: " + siegeDisplayProtoBuf.lootLost + "\n");
     report.text += ("-----------------------------\n");
 }
Beispiel #2
0
 public void DisplaySiege(ProtoSiegeDisplay siegeDisplayProtoBuf)
 {
     Console.WriteLine("-----------------------------");
     Console.WriteLine("Siege Report");
     Console.WriteLine("-----------------------------");
     Console.WriteLine("Besieged Fief: " + siegeDisplayProtoBuf.besiegedFief);
     Console.WriteLine("Besieged Army: " + siegeDisplayProtoBuf.besiegerArmy);
     Console.WriteLine("Siege Successful: " + siegeDisplayProtoBuf.besiegerWon);
     Console.WriteLine("Siege Length: " + siegeDisplayProtoBuf.days + " days");
     Console.WriteLine("Loot Lost: " + siegeDisplayProtoBuf.lootLost);
     if (siegeDisplayProtoBuf.attackerAllies.Count > 0 && siegeDisplayProtoBuf.attackerAllies != null)
     {
         Console.WriteLine("Attacker allies participating in the battle: ");
         for (int i = 0; i < siegeDisplayProtoBuf.attackerAllies.Count; i++)
         {
             Console.Write(siegeDisplayProtoBuf.attackerAllies[i]);
             if (i != siegeDisplayProtoBuf.attackerAllies.Count - 1)
             {
                 Console.Write(", ");
             }
         }
     }
     if (siegeDisplayProtoBuf.defenderAllies.Count > 0 && siegeDisplayProtoBuf.defenderAllies != null)
     {
         Console.WriteLine("Defender allies participating in the battle: ");
         for (int i = 0; i < siegeDisplayProtoBuf.defenderAllies.Count; i++)
         {
             Console.Write(siegeDisplayProtoBuf.defenderAllies[i]);
             if (i != siegeDisplayProtoBuf.defenderAllies.Count - 1)
             {
                 Console.Write(", ");
             }
         }
     }
     Console.WriteLine("-----------------------------");
 }