port from perforce
This commit is contained in:
57
meshToolsV5/src/Editor.Operators/Load.cs
Normal file
57
meshToolsV5/src/Editor.Operators/Load.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user