示例#1
0
        public static FreeSkillData Get(string heroId)
        {
            // What the hell
            if (heroId == null)
            {
                return(new FreeSkillData());
            }
            if (FreeSkillCampaignBehavior.FreeSkillDataMap.ContainsKey(heroId))
            {
                return(FreeSkillCampaignBehavior.FreeSkillDataMap[heroId]);
            }
            var instance = new FreeSkillData(heroId);

            FreeSkillCampaignBehavior.FreeSkillDataMap.Add(heroId, instance);
            return(instance);
        }
示例#2
0
 public CharacterMixin(CharacterVM vm) : base(vm)
 {
     _freeSkillData = FreeSkill.Get(_vm.Hero.StringId);
 }