public MeridiansEffectPositionData GetMeridiansEffectPointData(int EffectID) { MeridiansEffectPositionData effectData = null; PlayerEffectPositionDataList.TryGetValue(EffectID, out effectData); return(effectData); }
private static void OnPostprocessEffectPointdata() { string path = System.IO.Path.Combine(RESOURCE_EFFECTPOINT_DATA_FOLDER, "MeridiansEffectPosition.xml"); TextReader tr = new StreamReader(path); string text = tr.ReadToEnd(); if (text == null) { Debug.LogError("Equipment item file not exist"); return; } else { XmlSpreadSheetReader.ReadSheet(text); XmlSpreadSheet sheet = XmlSpreadSheetReader.Output; string[] keys = XmlSpreadSheetReader.Keys; object[] levelIds = sheet[keys[0]]; List <MeridiansEffectPositionData> tempList = new List <MeridiansEffectPositionData>(); for (int i = 2; i < levelIds.Length; i++) { MeridiansEffectPositionData data = new MeridiansEffectPositionData(); data.effectID = Convert.ToInt32(sheet["EffectID"][i]); data.position = Convert.ToString(sheet["Position"][i]).Split('+'); tempList.Add(data); } CreateEffectPositionConfigDataList(tempList); } }
public void Init() { MeridiansEffectPositionData[] meridiansEffectPositionDataBase = myParent.PlayerMeridiansDataManager.PlayerEffectPositionDataBase.MeridiansEffectPositionDataList; MeridiansEffectPositionData myEffPoint = meridiansEffectPositionDataBase.First(P => P.position[0] == PositionX && P.position[1] == PositionY); myEffectData = ItemDataManager.Instance.EffectDatas._effects.First(P => P.BasePropView == myEffPoint.effectID); this.AtbIcon.spriteName = myEffectData.EffectRes; StbLabel.SetText(LanguageTextManager.GetString(myEffectData.IDS)); AddStbNumberLabel.SetText(CurrentAddNumber); }