public void DisplayJournalEntry(ProtoJournalEntry journalEntryProtoBuf) { Console.WriteLine("-----------------------------"); Console.WriteLine("Journal Entry " + journalEntryProtoBuf.jEntryID); Console.WriteLine("-----------------------------"); Console.WriteLine("-----------------------------"); Console.WriteLine("Journal Entry ID: " + journalEntryProtoBuf.jEntryID); Console.WriteLine("Journal Event Year: " + journalEntryProtoBuf.year); Console.WriteLine("Journal Event Season: " + journalEntryProtoBuf.season); Console.WriteLine("Journal Event Location: " + journalEntryProtoBuf.location); Console.WriteLine("Journal Personae: "); foreach (var pers in journalEntryProtoBuf.personae) { Console.WriteLine(" " + pers); } Console.WriteLine("-----------------------------"); }
// Start is called before the first frame update new void Start() { //btnAttackArmy.onClick.AddListener(BtnAttackArmy); lblMessageForUser.text = ""; //ProtoMessage reply = GetArmyDetails(armyToViewID, tclient); //if(reply.ResponseType == DisplayMessages.Success) { // currentlyViewedJournalEntry = (ProtoArmy)reply; //} //else { // DisplayMessageToUser("ERROR: Response type: " + reply.ResponseType.ToString()); //} foreach (var jEntry in journalList.fields) { if (jEntry.jEntryID == journalEntryToViewID) { currentlyViewedJournalEntry = jEntry; } } DisplayJournalEntryDetails(); }