Daily update on 20250420-041137 by Nitload Youmu. Additional Message : Change: pipeline nodes use port to connect instead of connctors, this make send to multi-ports and recieve from multi-ports possible.

Remove: Some types in Pipeline namepace removed sueto no need for connectors

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-04-20 04:11:37 +08:00
parent c29993fd84
commit b618fdf7b5
72 changed files with 1343 additions and 602 deletions
+12 -4
View File
@@ -39,7 +39,7 @@ using System.Threading.Tasks;
namespace StgSharp.Graphics
{
public class TexturePipeline : PipeLineConnectorArgs
public class TexturePipeline : IPipeLineConnectionPayload
{
private Image _value;
@@ -49,11 +49,19 @@ namespace StgSharp.Graphics
_value = i;
}
public new Image Value
public object? ValueDefault => null;
public object Value
{
get => _value;
set => _value = value ??
throw new ArgumentNullException( nameof( value ) );
set
{
ArgumentNullException.ThrowIfNull( value );
if( value is not Image image ) {
throw new ArgumentException( "Value must be of type Image" );
}
_value = image;
}
}
}