// Generation Button, does the magic private void generateButton_Click(object sender, EventArgs e) { // Get the data instance GenerationData data = GenerationData.getInstance(); // Pass in the data data.setupData(levelBox.SelectedIndex + 1, roomsBox.SelectedIndex + 1, (TrapMode)trapBox.SelectedIndex, (MonsterMode)monstersBox.SelectedIndex, (DifficultyLevel)difficultyBox.SelectedIndex, (TreasureMode)treasureBox.SelectedIndex); // TODO: Run the Generation Generator generator = Generator.getInstance(); generator.GenerateRooms(); LevelData.getInstance().setupLevelWithData(generator.roomList); }