using System.Collections.Generic;
namespace LoraGamepad.Util;
///
/// 数据管道基类
///
/// 入口数据类型
/// 出口数据类型
public abstract class IPipe {
public delegate void OutFuncDelegate(T2 data);
public OutFuncDelegate OnOut;
public abstract void Push(T1 data);
public void Push(IEnumerable data) {
foreach (var x in data) {
Push(x);
}
}
}