Ejemplo n.º 1
0
        public PetsciiChar GetChar(int x, int y)
        {
            var c = _chars[x, y];

            if (c != null)
            {
                return(c);
            }
            c            = new PetsciiChar(byte.MinValue, false);
            _chars[x, y] = c;
            return(c);
        }
        public static PetsciiChar Get(this PetsciiChar[,] me, int x, int y)
        {
            var c = me[x, y];

            if (c != null)
            {
                return(c);
            }
            c        = new PetsciiChar(0, false);
            me[x, y] = c;
            return(c);
        }