示例#1
0
        private void NotifyDriveUpdate(drive.Update update)
        {
            LegoMazeDriverState state = new LegoMazeDriverState();

            state.MotorEnabled = update.Body.IsEnabled;

            _mainPort.Post(new Replace(state));
        }
示例#2
0
 public virtual IEnumerator <ITask> ReplaceHandler(Replace replace)
 {
     _state = replace.Body;
     replace.ResponsePort.Post(DefaultReplaceResponseType.Instance);
     yield break;
 }
 public Replace(LegoMazeDriverState body)
     : base(body)
 {
 }