Class for dealing with a character's path.
示例#1
0
        public void AddNewPositionWithPositionWillRecordIt()
        {
            Position expected = new Position {H = 1, X = 1, Y = 1, Z = 1};
            Position result = null;

            var recorder = new PathRecorder(null);

            recorder.OnPositionAdded += actual => result = actual;
            recorder.AddNewPosition(expected);

            Assert.Equal(expected, result);
        }
示例#2
0
 private void ViewModelBase_OnSessionSet(IMemoryAPI fface)
 {
     _recorder = new PathRecorder(fface);
     _recorder.OnPositionAdded += _recorder_OnPositionAdded;
 }
示例#3
0
 public void Initialize()
 {
     recorder = new PathRecorder(new MMemoryWrapper());
     recorder.Interval = 5;
 }