Exemple #1
0
 public EntityBase(char[,] text, Position position, ConsoleColor darkColor = Viewport.Light, ConsoleColor lightColor = Viewport.Dark)
 {
     Text         = text;
     Position     = position;
     Width        = Text.GetLength(0);
     Height       = Text.GetLength(1);
     Size         = new Size(Width, Height);
     DarkColorMap = new ConsoleColor[Width, Height];
     DarkColorMap.Fill(darkColor);
     LightColorMap = new ConsoleColor[Width, Height];
     LightColorMap.Fill(lightColor);
 }