//Loads the party from the database. private void loadParty() { PartyMembersTable partyTable = new PartyMembersTable(new DatabaseConnection()); Party party = partyTable.getParty(game.GameID); foreach (PartyMember partyMember in party.PartyMembers.Keys) { Color color; if (partyMember.IsNpc) { color = Color.LightGreen; } else { color = Color.LightBlue; } encounter.Entities.Add(partyMember, color); } }
//Loads the party from the database. private void loadParty() { PartyMembersTable partyTable = new PartyMembersTable(new DatabaseConnection()); party = partyTable.getParty(game.GameID); }