using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using LitJson;
|
|
public class ShenPropertyUtility
|
{
|
|
public static void Init()
|
{
|
}
|
|
public static List<Int3> GetEquipShenProperties(int itemId)
|
{
|
var shenConfig = EquipShenAttrConfig.Get(itemId);
|
if (shenConfig == null)
|
{
|
return null;
|
}
|
var pro = new Int3[shenConfig.ShenAttrID.Length + shenConfig.XianAttrID.Length + shenConfig.JiAttrID.Length];
|
int count = 0;
|
for (int i = 0; i < shenConfig.ShenAttrID.Length; i++)
|
{
|
pro[i].x = shenConfig.ShenAttrID[i];
|
pro[i].y = shenConfig.ShenAttrValue[i];
|
pro[i].z = 1;
|
count++;
|
}
|
|
for (int i = 0; i < shenConfig.XianAttrID.Length; i++)
|
{
|
|
pro[count].x = shenConfig.XianAttrID[i];
|
pro[count].y = shenConfig.XianAttrValue[i];
|
pro[count].z = 2;
|
count++;
|
}
|
|
for (int i = 0; i < shenConfig.JiAttrID.Length; i++)
|
{
|
|
pro[count].x = shenConfig.JiAttrID[i];
|
pro[count].y = shenConfig.JiAttrValue[i];
|
pro[count].z = 3;
|
count++;
|
}
|
|
return new List<Int3>(pro);
|
}
|
|
|
|
|
}
|