/// <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();
 }
Esempio n. 2
0
 public void Reduce(MSTSBase tileBase)
 {
     if (!Reduced)
     {
         TileX -= (int)tileBase.TileX;
         TileY -= (int)tileBase.TileY;
     }
     Reduced = true;
 }
Esempio n. 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;
 }
Esempio n. 5
0
 public void Reduce(MSTSBase tileBase)
 {
     Coord.Reduce(tileBase);
     Location.X = Coord.TileX * 2048f + Coord.X;
     Location.Y = Coord.TileY * 2048f + Coord.Y;
 }
Esempio n. 6
0
 public void Unreduce(MSTSBase tileBase)
 {
     Coord.Unreduce(tileBase);
 }
Esempio n. 7
0
 public virtual void complete(ORRouteConfig orRouteConfig, MSTSItems aeItems, MSTSBase tileBase)
 {
 }