|
|
|
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Globalization; |
|
|
|
using System.Linq; |
|
|
|
using UnityEditor.ShaderGraph; |
|
|
|
using UnityEngine; |
|
|
|
|
|
|
|
|
|
|
var toPrint = missingSlots.Select(x => x.ToString()); |
|
|
|
|
|
|
|
throw new SlotConfigurationException(String.Format("Missing slots {0} on node {1}", String.Join(", ", toPrint.ToArray()), node)); |
|
|
|
throw new SlotConfigurationException(string.Format("Missing slots {0} on node {1}", string.Join(", ", toPrint.ToArray()), node)); |
|
|
|
} |
|
|
|
|
|
|
|
public static IEnumerable<IEdge> GetAllEdges(INode node) |
|
|
|
|
|
|
else if (Single.IsNaN(value)) |
|
|
|
return "NAN"; |
|
|
|
else |
|
|
|
return value.ToString(); |
|
|
|
{ |
|
|
|
decimal amount; |
|
|
|
if( decimal.TryParse(value.ToString(), NumberStyles.Any, CultureInfo.InvariantCulture, out amount) ) |
|
|
|
return amount.ToString(); |
|
|
|
else |
|
|
|
return value.ToString(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |