Beispiel #1
0
            public Skill(string skillJSONFileName, int levelObtained, int progressionPointObtained)
            {
                this.levelObtained            = levelObtained;
                this.progressionPointObtained = progressionPointObtained;

                SkillJSONParser skillJSONParser = new SkillJSONParser(skillJSONFileName);

                InitializeSkillValues(skillJSONParser);
            }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="skillJSONParser">The JSON parser containing the skill's data.</param>
 private void InitializeSkillValues(SkillJSONParser skillJSONParser)
 {
     nameID             = skillJSONParser.GetNameID();
     descriptionID      = skillJSONParser.GetDescriptionID();
     longDescriptionID  = skillJSONParser.GetLongDescriptionID();
     iconFilePath       = skillJSONParser.GetIconFilePath();
     encounterSkillType = skillJSONParser.GetEncounterSkillType();
     targetType         = skillJSONParser.GetTargetType();
     aiSkillCategory    = skillJSONParser.GetAISkillCategory();
     costs               = skillJSONParser.GetCosts();
     cooldown            = skillJSONParser.GetCooldown();
     hits                = skillJSONParser.GetHits();
     skillChoreographies = skillJSONParser.GetSkillChoreographies();
     skillFunctionName   = skillJSONParser.GetSkillFunctionName();
 }