port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
using System.ComponentModel;
using System.IO;
using Editor.Attributes;
namespace Editor.Operators
{
public class Test : OperatorBase
{
public override ushort OpId { get { return 7; } }
[IndexedType("int")]
public ushort OutputIndex
{
get
{
return m_OutputIndex;
}
set
{
m_OutputIndex = value;
RaisePropertyChanged();
}
}
private ushort m_OutputIndex;
[IndexedType("int")]
public ushort ValueIndex
{
get
{
return m_ValueIndex;
}
set
{
m_ValueIndex = value;
RaisePropertyChanged();
}
}
private ushort m_ValueIndex;
public Test()
{
}
public override byte[] Serialize()
{
using (var stream = new MemoryStream())
{
using (var writer = new BinaryWriter(stream))
{
writer.Write(OpId);
writer.Write(m_OutputIndex);
writer.Write(m_ValueIndex);
return stream.ToArray();
}
}
}
}
}