/// <summary>
 /// Creates a new BaseRouteUpdate.
 /// </summary>
 /// <param name="routeID">The id of the affected BaseRoute</param>
 /// <param name="updateType">The type of update</param>
 /// <param name="newBaseRoute">In case of sending a new BaseRoute, this is the one</param>
 /// <param name="changedProperties">In case of sending changes, the list of changes</param>
 public BaseRouteUpdate(int routeID, UpdateType updateType, BaseRoute newBaseRoute, List <ChangedProperty> changedProperties)
 {
     this.routeID           = routeID;
     this.updateType        = updateType;
     this.newBaseRoute      = newBaseRoute;
     this.changedProperties = changedProperties;
 }
예제 #2
0
 protected void CloneFrom(BaseRoute baseRoute)
 {
     id        = baseRoute.id;
     start     = baseRoute.start;
     end       = baseRoute.end;
     waypoints = new List <StreetConnector>(baseRoute.waypoints);
     isUsable  = baseRoute.isUsable;
     length    = baseRoute.length;
 }
예제 #3
0
 /// <summary>
 /// Creates a clone of the given BaseRoute.
 /// </summary>
 /// <param name="baseRoute">The BaseRoute to clone</param>
 public BaseRouteClone(BaseRoute baseRoute)
 {
     CloneFrom(baseRoute);
 }