/// <summary> /// Called to alert the CSG Model that a new brush has been created /// </summary> public bool TrackBrush(Brush brush) { // If we don't already know about the brush, add it if (!brushes.Contains(brush)) { brushes.Add(brush); return true; } else { return false; } }
private Brush GetActiveBrush(int size) { if (this.m_CachedBrush == null) { this.m_CachedBrush = new Brush(); } this.m_CachedBrush.Load(s_BrushTextures[this.m_SelectedBrush], size); return this.m_CachedBrush; }
public bool HasBrushBeenBuilt(Brush candidateBrush) { return builtBrushes.Contains(candidateBrush); }
private Brush GetActiveBrush(int size) { if (this.m_CachedBrush == null) this.m_CachedBrush = new Brush(); this.m_CachedBrush.Load(TerrainInspector.s_BrushTextures[this.m_SelectedBrush], size); return this.m_CachedBrush; }