/// <summary>
 /// The class constructor, but, don't use it.  Prefer to use the static method 'LoadConfig' wich return this object
 /// </summary>
 public ORRouteConfig()
 {
     AllItems   = new List <GlobalItem>();
     routeItems = new List <GlobalItem>();
     RouteName  = "";
     TileBase   = new MSTSBase();
 }
Пример #2
0
 public void Reduce(MSTSBase tileBase)
 {
     if (!Reduced)
     {
         TileX -= (int)tileBase.TileX;
         TileY -= (int)tileBase.TileY;
     }
     Reduced = true;
 }
Пример #3
0
 public void Unreduce(MSTSBase tileBase)
 {
     if (Reduced)
     {
         TileX += (int)tileBase.TileX;
         TileY += (int)tileBase.TileY;
     }
     Reduced = false;
 }
 /// <summary>
 /// SetTileBase is used to initialize the TileBase for the route.  This information is then used to 'reduce' the value of the
 /// MSTS Coordinate wich are too big to be correctly shown in the editor
 /// </summary>
 /// <param name="tileBase"></param>
 public void SetTileBase(MSTSBase tileBase)
 {
     TileBase = tileBase;
 }
Пример #5
0
 public void Reduce(MSTSBase tileBase)
 {
     Coord.Reduce(tileBase);
     Location.X = Coord.TileX * 2048f + Coord.X;
     Location.Y = Coord.TileY * 2048f + Coord.Y;
 }
Пример #6
0
 public void Unreduce(MSTSBase tileBase)
 {
     Coord.Unreduce(tileBase);
 }
Пример #7
0
 public virtual void complete(ORRouteConfig orRouteConfig, MSTSItems aeItems, MSTSBase tileBase)
 {
 }