예제 #1
0
 /// <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;
     }
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }