/** * @brief Generator 객체 생성 */ private void OnEnable() { if (genPlanet == null) { genPlanet = VoxelPlanetGenerator.GetPlanetGenerator(); } if (genTerrainInfo == null) { genTerrainInfo = new TerrainInfo(); } if (genCloudInfo == null) { genCloudInfo = new CloudInfo(); } if (fillArea == null) { fillArea = new FillArea(); } if (noiseArea == null) { noiseArea = new NoiseArea(); } }
public IDrawing CreateObject(string c) { IDrawing drawing = null; if (!Enum.TryParse(c, out CommandEnum command)) { return(drawing); } else { if (command == CommandEnum.C) { drawing = new CreateCanvas(); } else if (command == CommandEnum.L) { drawing = new CreateNewLine(); } else if (command == CommandEnum.R) { drawing = new CreateRectangle(); } else if (command == CommandEnum.B) { drawing = new FillArea(); } } return(drawing); }
public void AddFillRectangle(FillArea rect) { if (!FillRectExists(rect)) { HttpDataClient.Default.AddFillRectangle(rect); //HttpDataAccess.AddFillRectangle(rect); } }
/// <summary> /// Serves as a hash of this type. /// </summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { return (Width.GetHashCode() ^ Height.GetHashCode() ^ X.GetHashCode() ^ Y.GetHashCode() ^ IsPercentage.GetHashCode() ^ IgnoreAspectRatio.GetHashCode() ^ Less.GetHashCode() ^ Greater.GetHashCode() ^ FillArea.GetHashCode() ^ LimitPixels.GetHashCode()); }
public void UpdateFillRectangle(FillArea area) { }
public bool FillRectExists(FillArea area) { return(FillRectExists(new FillArea[] { area }).FirstOrDefault()); }
public FillArea(FillArea copyThis) : base(copyThis) { this.blockType = copyThis.blockType; }