Class for dealing with a character's path.
コード例 #1
0
ファイル: PathRecorderTest.cs プロジェクト: EasyFarm/EasyFarm
        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;
 }