예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
        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);
        }