public RecordingInputSourceDecorator(IInputSource source, String filePath, IPersistenceManager persistenceManager, Int32 buttonCount)
 {
     _frame = 0;
     _source = source;
     _filePath = filePath;
     _persistenceManager = persistenceManager;
     _previousState = new InputState();
     _data = new ReplayData();
     _buttonCount = buttonCount;
 }
        public PlaybackInputSource(ReplayData data, Int32 buttonCount)
        {
            _data = data.Data;
            _buttons = new List<Boolean>();
            _buttonCount = buttonCount;
            _frame = 0;
            _frameIndex = 0;

            if (_data.Length > 0)
                _nextInputFrame = _data[0].Frame;
            else
                _nextInputFrame = -1;

            for (Int32 i = 0; i < buttonCount; i++)
                _buttons.Add(false);
                  
        }