private void loadGuardianChallenges(dynamic resource) { foreach (dynamic challengeRes in resource.ChallengeGuardianList) { var guardianChallenge = new GuardianChallenge(); loadGuardianChallenge(challengeRes, guardianChallenge); _challenges.Add(guardianChallenge.Index, guardianChallenge); } }
private void loadGuardianChallenge(dynamic challengeRes, GuardianChallenge guardianChallenge) { loadTutorial(challengeRes, guardianChallenge); guardianChallenge.Level = challengeRes.Level; guardianChallenge.LevelRestriction = challengeRes.LevelRestriction; guardianChallenge.GameMode = GameMode.Parse(challengeRes.GameMode); guardianChallenge.TennisCourt = challengeRes.TennisCourt; guardianChallenge.NpcIndex1 = challengeRes.NpcIndex1; guardianChallenge.NpcIndex2 = challengeRes.NpcIndex2; guardianChallenge.NpcIndex3 = challengeRes.NpcIndex3; }