/// <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;
 }
 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;
 }
Example #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);
 }