public void RestoreCheckPoint(PictureMemento memento) { nScans = memento.nScans; nRows = memento.nRows; Attributes = new Attribute[nScans, nRows]; isPixelInk = new bool[nScans * 6, nRows]; for (int i = 0; i < nScans; i++) { for (int j = 0; j < nRows; j++) { Attributes[i, j] = memento.Attributes[i, j]; } } for (int i = 0; i < nScans * 6; i++) { for (int j = 0; j < nRows; j++) { isPixelInk[i, j] = memento.isPixelInk[i, j]; } } ResetAllAttributes(); }
public RoomMemento(string name, int id, int size, PictureMemento image, WalkBoxesMemento wb) { roomName = String.Copy(name); roomSize = size; roomID = id; roomImage = image; walkBoxes = wb; }