- Cleanup and comments
This commit is contained in:
@@ -773,7 +773,7 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
Values[4] = GetSignatureData(memberInfo, memberInfo.GetParameters());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private SignatureInfo LoadSignature()
|
||||
{
|
||||
var signature = new SignatureInfo();
|
||||
|
||||
@@ -153,10 +153,10 @@ namespace FlaxEditor.Surface.ContextMenu
|
||||
// Hide group if none of the items matched the filter
|
||||
Visible = false;
|
||||
}
|
||||
|
||||
|
||||
Profiler.EndEvent();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Updates the sorting of the <see cref="VisjectCMItem"/>s of this <see cref="VisjectCMGroup"/>
|
||||
/// Also updates the <see cref="SortScore"/>
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace FlaxEditor.Surface
|
||||
/// </summary>
|
||||
All = Scalar | Vector | Enum | Anything | Value | Array | Dictionary,
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Surface node archetype description.
|
||||
/// </summary>
|
||||
@@ -123,7 +123,7 @@ namespace FlaxEditor.Surface
|
||||
/// Custom set of flags.
|
||||
/// </summary>
|
||||
public NodeFlags Flags;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Title text.
|
||||
/// </summary>
|
||||
@@ -166,7 +166,7 @@ namespace FlaxEditor.Surface
|
||||
/// Connections hints.
|
||||
/// </summary>
|
||||
public ConnectionsHint ConnectionsHints;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Array with independent boxes IDs.
|
||||
/// </summary>
|
||||
|
||||
@@ -200,6 +200,13 @@ namespace FlaxEditor.Surface
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if a type is compatible with another type and can be casted by using a connection hint
|
||||
/// </summary>
|
||||
/// <param name="from">Source type</param>
|
||||
/// <param name="to">Target type</param>
|
||||
/// <param name="hint">Connection hint</param>
|
||||
/// <returns>True if any method of casting or compatibility check succeeds</returns>
|
||||
public static bool FullCastCheck(ScriptType from, ScriptType to, ConnectionsHint hint)
|
||||
{
|
||||
// Yes, from and to are switched on purpose
|
||||
|
||||
Reference in New Issue
Block a user