- Cleanup and comments

This commit is contained in:
Nils Hausfeld
2023-09-30 20:27:51 +02:00
parent 2e09c4fb63
commit aca6d7110d
4 changed files with 13 additions and 6 deletions

View File

@@ -773,7 +773,7 @@ namespace FlaxEditor.Surface.Archetypes
Values[4] = GetSignatureData(memberInfo, memberInfo.GetParameters());
}
}
private SignatureInfo LoadSignature()
{
var signature = new SignatureInfo();

View File

@@ -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"/>

View File

@@ -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>

View File

@@ -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