Пример #1
0
 /// <inheritdoc/>
 public virtual void Visit(SetDriverPositionMessage message)
 {
 }
 void IMessageVisitor.Visit(SetDriverPositionMessage message)
 {
     Dispatch(message);
 }
Пример #3
0
            /// <inheritdoc/>
            public override void Visit(SetDriverPositionMessage message)
            {
                // TODO

                //var driver = GetDriver(message);

                //if(driver.Position != message.Position) {
                //    driver.Position = message.Position;
                //    Model.SortDrivers();
                //}
            }
Пример #4
0
 /// <inheritdoc/>
 public override void Visit(SetDriverPositionMessage message)
 {
     if(IsForMyDriver(message))
     {
         Model.Position = message.Position;
     }
 }
 /// <inheritdoc/>
 public override void Visit(SetDriverPositionMessage message)
 {
     GetDriver(message).Position = message.Position;
 }