public void SetExtraCommonSkill(string skillId) { if (!string.IsNullOrEmpty(skillId)) { this.extraCommonSkill = MonsterSkillData.GetSkillMasterBySkillId(skillId); } }
public void SetLeaderSkill(string skillId) { if ("0" != skillId) { this.leaderSkill = MonsterSkillData.GetSkillMasterBySkillId(skillId); } }
private static void AddSkillGroupMaster(MonsterSkillClientMaster skillMaster, ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destGroupMasterList) { Dictionary <string, MonsterSkillClientMaster> dictionary = null; if (!destGroupMasterList.TryGetValue(skillMaster.Simple.skillGroupId, out dictionary)) { dictionary = new Dictionary <string, MonsterSkillClientMaster>(); dictionary.Add(skillMaster.Simple.skillGroupSubId, skillMaster); destGroupMasterList.Add(skillMaster.Simple.skillGroupId, dictionary); } else if (!dictionary.ContainsKey(skillMaster.Simple.skillGroupSubId)) { dictionary.Add(skillMaster.Simple.skillGroupSubId, skillMaster); } else { Debug.Assert(false, string.Concat(new string[] { "重複する skillGroupId(", skillMaster.Simple.skillGroupId, "), skillGroupSubId(", skillMaster.Simple.skillGroupSubId, ") のため失敗しました。" })); } }
public static MonsterSkillClientMaster GetSkillMasterBySkillId(string skillId) { MonsterSkillClientMaster monsterSkillClientMaster = null; MonsterSkillData.simpleMasterList.TryGetValue(skillId, out monsterSkillClientMaster); Debug.Assert(null != monsterSkillClientMaster, "該当情報がありません。skillId(" + skillId + ")"); return(monsterSkillClientMaster); }
public void SetUniqueSkill(string monsterId, string defaultSkillGroupSubId) { MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(monsterId); if (monsterMasterByMonsterId != null) { this.uniqueSkill = MonsterSkillData.GetSkillMasterBySkillGroupId(monsterMasterByMonsterId.Simple.skillGroupId, defaultSkillGroupSubId); } }
private static void AddSkillSimpleMaster(MonsterSkillClientMaster skillMaster, ref Dictionary <string, MonsterSkillClientMaster> destSimpleMasterList) { if (!destSimpleMasterList.ContainsKey(skillMaster.Simple.skillId)) { destSimpleMasterList.Add(skillMaster.Simple.skillId, skillMaster); } else { Debug.Assert(false, "重複する skillId(" + skillMaster.Simple.skillId + ")のため失敗しました。"); } }
private static void CreateSkillGroupList(ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destSkillGroupList) { GameWebAPI.RespDataMA_GetSkillM.SkillM[] skillM = MasterDataMng.Instance().RespDataMA_SkillM.skillM; for (int i = 0; i < skillM.Length; i++) { if (skillM[i] != null) { MonsterSkillClientMaster skillMasterBySkillId = MonsterSkillData.GetSkillMasterBySkillId(skillM[i].skillId); if (skillMasterBySkillId != null) { MonsterUniqueSkillData.AddSkillGroupData(skillMasterBySkillId, ref destSkillGroupList); } } } }
private void SetMonsterData() { this.monsterMaster = MonsterMaster.GetMonsterMasterByMonsterId(this.userMonster.monsterId); this.uniqueSkill = MonsterSkillData.GetSkillMasterBySkillGroupId(this.monsterMaster.Simple.skillGroupId, this.userMonster.defaultSkillGroupSubId); this.commonSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.commonSkillId); if (!string.IsNullOrEmpty(this.userMonster.extraCommonSkillId)) { this.extraCommonSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.extraCommonSkillId); } if ("0" != this.userMonster.leaderSkillId) { this.leaderSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.leaderSkillId); } this.chipEquip.SetChipEquip(this.userMonster.userMonsterId); }
public static MonsterSkillClientMaster GetMonsterSkillBySkillGroupId(string skillGroupId, string skillGroupSubId) { MonsterSkillClientMaster monsterSkillClientMaster = null; Dictionary <string, MonsterSkillClientMaster> monsterSkillBySkillGroupId = MonsterUniqueSkillData.GetMonsterSkillBySkillGroupId(skillGroupId); if (monsterSkillBySkillGroupId != null) { monsterSkillBySkillGroupId.TryGetValue(skillGroupSubId, out monsterSkillClientMaster); Debug.Assert(null != monsterSkillClientMaster, string.Concat(new string[] { "該当情報がありません。スキルグループID(", skillGroupId, "), スキルグループサブID(", skillGroupSubId, ")" })); } return(monsterSkillClientMaster); }
private static void AddSkillGroupData(MonsterSkillClientMaster skillMaster, ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destSkillGroupList) { Dictionary <string, MonsterSkillClientMaster> dictionary = null; if (!destSkillGroupList.TryGetValue(skillMaster.Simple.skillGroupId, out dictionary)) { dictionary = new Dictionary <string, MonsterSkillClientMaster>(); dictionary.Add(skillMaster.Simple.skillGroupSubId, skillMaster); destSkillGroupList.Add(skillMaster.Simple.skillGroupId, dictionary); } else if (!dictionary.ContainsKey(skillMaster.Simple.skillGroupSubId)) { dictionary.Add(skillMaster.Simple.skillGroupSubId, skillMaster); } else { Debug.Assert(false, "重複する スキルグループサブID(" + skillMaster.Simple.skillGroupSubId + ")のため失敗しました。"); } }
public static MonsterSkillClientMaster GetSkillMasterBySkillGroupId(string skillGroupId, string skillGroupSubId) { MonsterSkillClientMaster monsterSkillClientMaster = null; Dictionary <string, MonsterSkillClientMaster> dictionary = null; if (MonsterSkillData.groupMasterList.TryGetValue(skillGroupId, out dictionary)) { dictionary.TryGetValue(skillGroupSubId, out monsterSkillClientMaster); } Debug.Assert(null != monsterSkillClientMaster, string.Concat(new string[] { "該当情報がありません。skillGroupId(", skillGroupId, "), skillGroupSubId(", skillGroupSubId, ")" })); return(monsterSkillClientMaster); }
private static void CreateSkillMasterClient(ref Dictionary <string, MonsterSkillClientMaster> destSimpleMasterList, ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destGroupMasterList) { GameWebAPI.RespDataMA_GetSkillM.SkillM[] skillM = MasterDataMng.Instance().RespDataMA_SkillM.skillM; for (int i = 0; i < skillM.Length; i++) { if (skillM[i] != null) { List <GameWebAPI.RespDataMA_GetSkillDetailM.SkillDetailM> list = new List <GameWebAPI.RespDataMA_GetSkillDetailM.SkillDetailM>(); MonsterSkillData.GetSkillDetailMaster(skillM[i].skillId, ref list); if (0 < list.Count) { MonsterSkillClientMaster monsterSkillClientMaster = new MonsterSkillClientMaster(skillM[i], list); MonsterSkillData.AddSkillSimpleMaster(monsterSkillClientMaster, ref destSimpleMasterList); if ("0" != monsterSkillClientMaster.Simple.skillGroupSubId) { MonsterSkillData.AddSkillGroupMaster(monsterSkillClientMaster, ref destGroupMasterList); } } } } }
public void SetCommonSkill(string skillId) { this.commonSkill = MonsterSkillData.GetSkillMasterBySkillId(skillId); }