public override string ToString() { if (_requestedName == null) { return(string.Format("[ItemRequestRelationship: {0}#{1} requests {2}#{3} and gives {4} as reward]", _requesterName, _requesterIndex, _requestedName, _requestedIndex, _rewardItem.ToString())); } else { return(string.Format("[ItemRequestRelationship: {0}#{1} requests {2}#{3} with property ({4}, {5}) and gives {6} as reward]", _requesterName, _requesterIndex, _requestedName, _requestedIndex, _requestedPropertyName, _requestedPropertyVal, _rewardItem)); } }
public override string ToString() { string returnVal = string.Format("[Combine Relationship: {0}#{1} and {2}#{3} form {4}]", _ingredient1Name, _ingredient1Index, _ingredient2Name, _ingredient2Index, _resultItem.ToString()); return(returnVal); }