override public void Activated() { base.Activated(); ushort nextCellValue = 0; paletteGrid.DoEach((x, y, c) => { c.SetValue(nextCellValue++); }); cursors.Add(xxi.authorCursorBank.Spawn <AuthorCursor>().Setup(outline: true)); UpdateCursorPos(); }
public void LoadRoom(NavdiGrid grid) { File.CreateFolderIfDoesNotExist( File.CombinedPath(Application.streamingAssetsPath, roomsFolderName) ); string levelPath = File.CombinedPath(Application.streamingAssetsPath, roomsFolderName, this.GetRoomCoordString(this.currentRoomCoord)); if (File.DoesFileExist(levelPath)) { this.currentRoomGridString = File.ReadFile(levelPath); grid.ImportString(this.currentRoomGridString, options.separator_grid_cells); } else { grid.DoEach((cell) => { cell.SetValue(0); }); } }