Exemplo n.º 1
0
 internal LogBuffer(int2 size)
 {
     m_Surface = new CellSurface(size);
     m_Cursor  = default;
     m_Fg      = ColorIndex.White;
     m_Bg      = ColorIndex.Black;
     CellSurface.Clear(ref m_Surface, new Cell {
         fg = m_Fg, bg = m_Bg, rune = new Unicode.Rune {
             value = ' '
         }
     });
 }
Exemplo n.º 2
0
 internal void Initialize()
 {
     m_Instance = new UnsafeArray <Instance>(kMaxInstances);
     m_Screen   = new CellSurface(new int2(Cell.kMaxWide, Cell.kMaxTall));
 }