private static void ConvertCharacters(Category cat, Objects.GameObjects.Role role) { foreach (var cha in cat.Characters) { Objects.GameObjects.Character player = ConvertCharacter(cha); role.Players.Add(player); } }
private static void ConvertRoles(EventDetailRaidStatus detail, RaidStatus status) { foreach (var cat in detail.Categories.AllCategories) { Objects.GameObjects.Role role = ConvertRole(cat); status.Roles.Add(role); } }
private static Objects.GameObjects.Role ConvertRole(Category category) { var role = new Objects.GameObjects.Role { RoleID = category.ID, Name = category.Name }; ConvertCharacters(category, role); return(role); }