private void NotifyDriveUpdate(drive.Update update) { LegoMazeDriverState state = new LegoMazeDriverState(); state.MotorEnabled = update.Body.IsEnabled; _mainPort.Post(new Replace(state)); }
public virtual IEnumerator <ITask> ReplaceHandler(Replace replace) { _state = replace.Body; replace.ResponsePort.Post(DefaultReplaceResponseType.Instance); yield break; }
public Replace(LegoMazeDriverState body) : base(body) { }