public PlannerSettings(short Width, short Height) { TileMap = new TileData[Width, Height]; MainBackground = BackgroundData.MainBackgroundType.Forest; hasMainBackground = true; this.WorldWidth = Width; this.WorldHeight = Height; }
/// <summary> /// Clone settings from old ones /// </summary> /// <param name="old"></param> public PlannerSettings(PlannerSettings old) { this.hasMainBackground = old.hasMainBackground; this.MainBackground = old.MainBackground; this.hasCustomMainBackgroundColor = old.hasCustomMainBackgroundColor; this.ARGBBackgroundColor = old.ARGBBackgroundColor; this.InvalidTiles = old.InvalidTiles; this.WorldWidth = old.WorldWidth; this.WorldHeight = old.WorldHeight; this.TileMap = new TileData[WorldWidth, WorldHeight]; }