// Reading a recording for playback public RecordedFrame GetFrame(int frameID) { RecordedFrame ret = new RecordedFrame(); if (frameID < _Keys.Count) { ret.kValue = _Keys[frameID]; } return(ret); }
public void SetFrame(RecordedFrame f, int fID) { if (_Keys.Count > fID) { _Keys[fID] = f.kValue; } else { AddFrame(f); } }
// Add a frame public void AddFrame(bool down, bool up, bool right, bool left, bool space, int item) { // Get byte for keys RecordedFrame nFrame = new RecordedFrame { down = down, up = up, right = right, left = left, space = space }; _Keys.Add(nFrame.kValue); }
public void AddFrame(RecordedFrame f) { _Keys.Add(f.kValue); }