Files
bluflame/meshToolsV5/src/Editor.Operators/Load.cs
2026-04-18 22:31:51 +02:00

58 lines
815 B
C#

using System.ComponentModel;
using System.IO;
using Editor.Attributes;
namespace Editor.Operators
{
public class Load : OperatorBase
{
public override ushort OpId { get { return 6; } }
public int &Output
{
get
{
return m_&Output;
}
set
{
m_&Output = value;
RaisePropertyChanged();
}
}
private int m_&Output;
public int Intput
{
get
{
return m_Intput;
}
set
{
m_Intput = value;
RaisePropertyChanged();
}
}
private int m_Intput;
public Load()
{
}
public override byte[] Serialize()
{
using (var stream = new MemoryStream())
{
using (var writer = new BinaryWriter(stream))
{
writer.Write(OpId);
writer.Write(m_&Output);
writer.Write(m_Intput);
return stream.ToArray();
}
}
}
}
}