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