public List <string> getItemInfo(string itemCode) { List <string> itemInfoList = new List <string>(); Entity_item_mst itemMst = Resources.Load("Data/item_mst") as Entity_item_mst; for (int i = 0; i < itemMst.param.Count; i++) { string MstItemCode = itemMst.param [i].itemCode; if (itemCode == MstItemCode) { itemInfoList.Add(itemMst.param[i].itemCode); if (Application.systemLanguage != SystemLanguage.Japanese) { itemInfoList.Add(itemMst.param[i].itemNameEng); itemInfoList.Add(itemMst.param[i].itemExpEng); } else { itemInfoList.Add(itemMst.param[i].itemName); itemInfoList.Add(itemMst.param[i].itemExp); } itemInfoList.Add(itemMst.param[i].effect.ToString()); itemInfoList.Add(itemMst.param[i].buy.ToString()); itemInfoList.Add(itemMst.param[i].sell.ToString()); itemInfoList.Add(itemMst.param[i].itemRatio.ToString()); break; } } return(itemInfoList); }
public int getItemEffect(string itemCode) { int itemEffect = 0; Entity_item_mst itemMst = Resources.Load("Data/item_mst") as Entity_item_mst; for (int i = 0; i < itemMst.param.Count; i++) { string MstItemCode = itemMst.param [i].itemCode; if (itemCode == MstItemCode) { itemEffect = itemMst.param[i].effect; } } return(itemEffect); }
public string getItemName(string itemCode) { string itemName = ""; Entity_item_mst itemMst = Resources.Load("Data/item_mst") as Entity_item_mst; for (int i = 0; i < itemMst.param.Count; i++) { string MstItemCode = itemMst.param [i].itemCode; if (itemCode == MstItemCode) { if (Application.systemLanguage != SystemLanguage.Japanese) { itemName = itemMst.param[i].itemNameEng; } else { itemName = itemMst.param[i].itemName; } } } return(itemName); }