Exemplo n.º 1
0
        public DataHandler RegisterHandler(Action <NetReceivedData> action, NetDataFilter dataFilter, bool isOneShotHandler = false)
        {
            DataHandler dataHandler = DataHandler.New(action, dataFilter, isOneShotHandler);

            RegisterHandler(dataHandler);
            return(dataHandler);
        }
Exemplo n.º 2
0
        public static DataHandler New(Action <NetReceivedData> action, NetDataFilter dataFilter, bool isOneShotHandler = false)
        {
            DataHandler registeredDataHandler = new DataHandler();

            registeredDataHandler.registeredAction = action;
            registeredDataHandler.dataFilter       = dataFilter;
            registeredDataHandler.isOneShotHandler = isOneShotHandler;

            return(registeredDataHandler);
        }
Exemplo n.º 3
0
 public NetDataFilterInverse(NetDataFilter baseFilter)
 {
     this.baseFilter = baseFilter;
 }