public override string ToString() { string s; s = ItemCode.ToString() + "," + HaveItem.ToString() + "," + MaxDur.ToString() + "," + CurDur + "," + ItemName + "," + IsItemUse.ToString() + "," + IsRotate.ToString() + "," + Description; return(s); }
public HaveItem ItemFind(Item _type) // 아이템을 리스트에서 찾아서 리턴 { HaveItem result = null; for (int i = 0; i < itemList.Count; i++) { if (itemList[i].itemType == _type) { result = itemList[i]; } } return(result); }