示例#1
0
 public DataRepository(int stackSize, bool isBlue, bool PlayingFromLeft)
 {
     _gameConfig = new GameConfiguration(isBlue, PlayingFromLeft);
     _inData = new SSLPacketParser(stackSize);
     _outData = new OutputRobotData(12, this);
     ((IDataSource) _outData).Repository = this;
 }
示例#2
0
 public RobotDataSvc(IRobotData data, IEventPublisher evtPub, IRequestCache cache)
 {
     _data = Check.NotNull(data, nameof(data)); _evtPub = Check.NotNull(evtPub, nameof(evtPub)); _cache = Check.NotNull(cache, nameof(cache)); RobotDataSvcCtor();
 }