daily update on 20230329 by nitload youmu
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
public abstract class BlockOperation : INode<BlockOperation>
|
||||
{
|
||||
|
||||
private ContainerNode<BlockOperation> _id;
|
||||
|
||||
|
||||
ContainerNode<BlockOperation> INode<BlockOperation>.ID => _id;
|
||||
|
||||
void INode<BlockOperation>.setID(ContainerNode<BlockOperation> id)
|
||||
{
|
||||
if (_id == default)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidOperationException("Cannot set ID twice!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public abstract void OnUpdating();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user